-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Goals
I use setState hook with realm object and expect that Component will re-render after realm object modified
Expected Results
Component should re-render
Actual Results
Component re-render in DEBUG mode, but it doesn't in RELEASE mode
Steps to Reproduce
- Create Realm Object with property
- Use this object as state for functional component
- Modify This object and update state
- Component should re-render, but it doesn't (in RELEASE mode)
I have created Test Environment where you can easily reproduce it: https://github.com/TuTejsy/Test-Environment
Demo in DEBUG mode: https://youtu.be/LZxPk5P5TK4
Demo in RELEASE mode: https://youtu.be/HX617LHOO3Y
Code Sample
I have created Test Environment where you can easily reproduce it: https://github.com/TuTejsy/Test-Environment
Version of Realm and Tooling
- Realm JS SDK Version: "3.6.4"
- Node or React Native: React Native
- Client OS & Version: IOS 13
- Which debugger for React Native: Chrome Dev Tools
- is caused by
-
RJS-378 Change listeners on Results should always update React Native UI
- Closed