Open jamalsoueidan opened 3 weeks ago
➤ PM Bot commented:
Jira ticket: RJS-2894
Here you see the example. I hope it make sense. https://github.com/user-attachments/assets/66c47c04-09da-4185-b0bb-0a90c49bd1c1
Here is another example, again it doesnt work first, and I keep refreshing (HMR) until it start working. https://github.com/user-attachments/assets/f203254f-ee92-4f8c-9052-31486903e02a
How frequently does the bug occur?
Sometimes
Description
useQuery is not forcing react components to re-render after changing, updating a array property, sometime it works, sometime it doesnt..
I have my types that look like this and im trying to update user_ids.
In one place I do this:
and where I show the data I use this hook.
I tried to use push and remove, didnt make a difference, the changes is applied in the mongodb db, but not in the view, I can see its uploading and downloading the data using realm.syncSession.
The data does not always gets updated in the view, whenever realm.write execute.
I also tried to use, doesn't work.
I can see the hook gets re-rendered, but not in the view.
BUT if I add after the useQuery
Then react can always see that the data have changed, and will update the view.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
As shown above.
Version
12.0.0-browser.2
What services are you using?
Atlas Device Sync
Are you using encryption?
No
Platform OS and version(s)
Windows
Build environment
Which debugger for React Native: ..
Cocoapods version
No response