GithubHelp home page GithubHelp logo

Comments (4)

holmsand avatar holmsand commented on May 4, 2024

Hi, sorry it took so long for me to reply.

React and Reagent don't do anything explicitly to the scroll position, so they are completely at the mercy of what the browser does when you delete/add stuff in the DOM.

If the browser doesn't behave, you could certainly use the :component-did-mount callback to keep track of scrolling. You would probably have to use :component-did-update as well (that will be called whenever a component is re-rendered).

I can't see any way that Reagent could do that automatically (after all, the browser itself is supposed to keep the scroll position where it should be, and if it doesn't succeed it is probably A Hard Problem to solve...).

But if you have a more concrete example, I'm always happy to be proven wrong :)

from reagent.

Frozenlock avatar Frozenlock commented on May 4, 2024

Thanks, I'll post here again if I find something that could be incorporated in reagent.

By the way, is there a mailing-list/forum/channel/email for 'light' questions?

from reagent.

jonase avatar jonase commented on May 4, 2024

+1 for mailing list.

from reagent.

Frozenlock avatar Frozenlock commented on May 4, 2024

See, if we had a mailing list I could let you know that this works well with Reagent. :-p

https://github.com/Frozenlock/historian

from reagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.