react-smart-scroll
react-smart-scroll copied to clipboard
Is there a way to retain scroll position when re-rendered?
First of all, thank you, nice project.
Is there a way to retain scroll position when re-rendered (e.g. if I need to add/remove element is into/from data array)?
Sorry for the delay. Sure, I can make a Boolean prop for that. Glad you're finding this useful!
Thanks for the reply. For time being I created fork where I removed scrollToTop hook. I would drop the fork when new property would be created. Eventually let me know if you would accept contribution.
Any news?
Apologies for my absence. I have rewritten the project in TypeScript and changed to rollup for distribution.
I tried to implement the changes in the fork, but when I tried to scroll, it didn't work. It stayed forever stuck at the top.
Now that the project is updated, I'm going to work on integrating this requested feature.