How to use useQuery in realm-react with react-navigation/native #6490
Replies: 3 comments 3 replies
-
The If thats not your experience, can you perhaps share a bit more code or information on potential issues you're experiencing? |
Beta Was this translation helpful? Give feedback.
-
Something like the |
Beta Was this translation helpful? Give feedback.
-
This was exactly what I was about to ask in the discussion. 😔 When a lot of data is stored in Realm, it gets slow when updating 2 to 3 screens. |
Beta Was this translation helpful? Give feedback.
-
Code example
I'm using useQuery in realm-react to listen for changes to a collection. I want to combine it with @react-navigation/native, so that when the screen loses focus, it will cancel listening for useQuery changes, and when it gets focus, it will listen again.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions