React Query utilities for React Native
As we all know, React Native has its own quirks as compared to pure ReactJS. React Query doesn’t leave managing those quirks to the developers, but rather steps up with some interesting solutions. For example, there’s an onlineManager
that can be added to React Native apps to have our apps reconnect when they are online. If we would like to refresh or refetch data when the app is focused, we can use React Query’s focusManager
together with React Native’s AppState
. In some cases, we may want to refetch data when a specific screen in our app is focused, and React Query offers a solution for that use case as well. If you want to read about these utilities and how to use them in more detail, head over to the TanStack documentation at https://tanstack.com/query/v4/docs/react-native.