T
TanStack2y ago
other-emerald

A bug in React Native section

Hello everyone, In this section https://tanstack.com/query/v4/docs/react/react-native#disable-re-renders-on-out-of-focus-screens You can see that the notifyOnChangeProps isn't wrapped in a useRef, even though the ref is returned in the callback. Did anyone encounter this issue and if so, what's the correct code?
React Native | TanStack Query Docs
React Query is designed to work out of the box with React Native, with the exception of the devtools, which are only supported with React DOM at this time. There is a 3rd party Flipper plugin which you can try: https://github.com/bgaleotti/react-query-native-devtools
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?