How to use useQuery in realm-react with react-navigation/native #6490
Unanswered
HuuNguyen312
asked this question in
Q&A
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? |
3 replies
|
Something like the |
0 replies
|
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. |
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.
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
All reactions