Initialising queryCache #472
-
I have a api call which gets me all the initial data ( like statues, dropdown values which rarely change ). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Stale time can be configured at the global and query level.
You can either set it at the global level with queryConfigProvider or per query when you call useQuery |
Beta Was this translation helpful? Give feedback.
-
You may be interested in this feature request |
Beta Was this translation helpful? Give feedback.
-
I now have a parent component which loads the data from the server. It passes the data to child component which calls the hooks and sets the initialData field. |
Beta Was this translation helpful? Give feedback.
I now have a parent component which loads the data from the server. It passes the data to child component which calls the hooks and sets the initialData field.