-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XGrid is re rendering every second or so #1558
Comments
closing as its related to #1560 |
@peppermint-juli The codesandbox you have provided doesn't demonstrate this. It's invalid. |
You probably didn't even see the console. It logs almost 20 times for each action you take with the XGrid. Scroll, open vertical menus, virtually anything. That makes it really hard to use this method. |
@peppermint-juli Ok, then it looks like a duplicate of #569. The framing of the issue made it sounds like the problem was that there is a set interval that makes the grid rerender every 1,000ms ("this method gets fired every second or so"). |
Yeah! Definitely looks like #569 |
Hey everyone!
My eng team and I are trying to manage the app state
on visibility change
, meaning when a column is hidden or shown we need to call a method that saves this state. First of all there isn't even a native method to the XGrid that allows developers to manage this, so this might be a separate issue in the near future, but for now we found a way around it and tried usingonStateChange
that has aparams
object that we could use to track it but this method gets fired every second or so, which affects performance and memory. So all this to ask, why is XGrid re rendering every second or so? How can we prevent this? The hidden columns get shown again (meaning the grid state lost) out of the blue, because XGrid decides to re render out of nowhere.Here's a Code SandBox link. I basically altered the code from the XGrid demo with the
onStateChange
and the browser window freezes and I have to close it.https://codesandbox.io/s/material-demo-forked-sb1h1?file=/demo.tsx
Thanks in advance!
Order ID 💳
18479
The text was updated successfully, but these errors were encountered: