RL integration with RQ, RT #122
-
I'm playing around with the wonderful Tanstack tools and their integration with each other. It seems like each tool provides some sort of state management; RT has There're a bunch of decisions to make like, should the button that "loads more data" change the URL so that RQ key change triggers a new fetch or call the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Generally, as much as makes sense should be stored in the URL that drives the state of table and query variables. This is pretty easy to do with React Query because it's API is 100% controlled for the most part. React Table v7 however is finicky still. Some of its state is internal and automanage, so it's hard to 100% control it via props. This is going to change in v8 (the Typescript rewrite I'm doing). |
Beta Was this translation helpful? Give feedback.
Generally, as much as makes sense should be stored in the URL that drives the state of table and query variables. This is pretty easy to do with React Query because it's API is 100% controlled for the most part. React Table v7 however is finicky still. Some of its state is internal and automanage, so it's hard to 100% control it via props. This is going to change in v8 (the Typescript rewrite I'm doing).