naver / egjs-infinitegrid

A module used to arrange card elements including content infinitely on a grid layout.
https://naver.github.io/egjs-infinitegrid/
MIT License
2.23k stars 95 forks source link

Restoring status only working the first time? #490

Closed pozdena closed 2 years ago

pozdena commented 2 years ago

Description

I am using react-infinitegrid in a private repo, and I am able to getStatus from my Grid ref, save it to state, and then setStatus with the saved status, and it works as expected. But if I repeat this process a second time, the grid's scrollable height is much shorter and it does not scroll to the expected position. Are you aware of any issue of this kind?

Steps to check or reproduce

I apologize, I cannot get this to work in code sandbox right now, and the Guides are currently not operational, otherwise I would try to provide a reproducible case. I have also tried to run the storybook locally, but npm install fails because of electron. I will try to update this issue if I can get it working. Thanks.

pozdena commented 2 years ago

Oh thank you so much, this fixes it https://github.com/naver/egjs-infinitegrid/pull/484