Refecth data but persisting current state in application #2725
Unanswered
cubecleveland
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I think one way would be to pause the query while the menu is open by passing the |
Beta Was this translation helpful? Give feedback.
0 replies
-
why are you losing the toggle state? Do you have it in local react state? Sounds more as if the component would unmount / remount here? Generally, a re-render shouldn't cause open menus to close :/ A codesandbox example would help in understanding the issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I ahve a tble that is rendering the results recieved by usqQuery fetching.
Each TD in the table has a menu that is toggled between open and close to preform certain operation on the row.
Problem is that when the query refetces in the background and tehn update the entire table get redrawn and i loose the toggle state of the menu... so it jumps between on and off based on the uesry refetching...
Is there any trick i can use to ep the menu open even after the query has refetched in the background ?
Beta Was this translation helpful? Give feedback.
All reactions