You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm new to this library and I'm struggling with using queries in my Table component. It has local state with pagination, filtration. Currently, all fetching logic is done with onChange callbacks, but I want to integrate RTK into the project and don't know how to connect component's local state to useQuery to pass currentPage for example. I don't want to pass a hook as props, as Table component can be used without request logic. I found this hack , but I was thinking that maybe there is better solution for this problem. Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm new to this library and I'm struggling with using queries in my Table component. It has local state with pagination, filtration. Currently, all fetching logic is done with onChange callbacks, but I want to integrate RTK into the project and don't know how to connect component's local state to useQuery to pass currentPage for example. I don't want to pass a hook as props, as Table component can be used without request logic. I found this hack , but I was thinking that maybe there is better solution for this problem. Thank you!
Sorry for my English btw.
Beta Was this translation helpful? Give feedback.
All reactions