You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is a discussion about the problem - #6490
Is there a solution to prevent useQuery from re-rendering a screen that you're not currently on? If so, could you please provide an example?
Solution
Whenever you trigger an update in Realm, useQuery gets updated, causing every screen in the bottom tab that uses useQuery to re-render. Is there a way to prevent this, so it only triggers a re-render when you visit that screen, and only if there was an update?
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered:
shanoysinc
changed the title
Realm slows down app performance when update multiple screen with react-navigation/native
Realm slows down app performance when updating multiple screen with react-navigation/native
Jan 13, 2025
Problem
here is a discussion about the problem - #6490
Is there a solution to prevent useQuery from re-rendering a screen that you're not currently on? If so, could you please provide an example?
Solution
Whenever you trigger an update in Realm, useQuery gets updated, causing every screen in the bottom tab that uses useQuery to re-render. Is there a way to prevent this, so it only triggers a re-render when you visit that screen, and only if there was an update?
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered: