Why does react query in react native have the same default refetch behavior as in the browser? #3597
Unanswered
ianjkaplan
asked this question in
Ideas
Replies: 1 comment
-
mainly we are not adding 3rd party dependencies and try not to build platform specific things into the library. Some things like window focus refetching favour the browser, but are built in a way so that they can be extended for other platforms (focusManager, onlineManager) |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I see that the docs show how to nicely implement the sensible react query defaults available in the browser here.
Are there good reasons not to build this behavior into the library? What are some potential issues with detecting the platform
and implementing the same behavior on setup so to remove this responsibility from application code since we would want this aggressive synchonization enabled by default? Is the main issue the reliance on react-native specific dependencies?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions