I am using Next + Recoil for my project and trying to preserve current scrollOffset of react-window so I can route back to where I was.
I tried both onScroll and onItemsRendered methods, but they automatically set the offset to 0 when first loaded,
so it always becomes 0 when it's loaded.
Could be a problem with AutoSizer. How should I solve this?
I am using Next + Recoil for my project and trying to preserve current scrollOffset of react-window so I can route back to where I was.
I tried both
onScroll
andonItemsRendered
methods, but they automatically set the offset to 0 when first loaded, so it always becomes 0 when it's loaded.Could be a problem with
AutoSizer
. How should I solve this?