Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] React components not updating after remote changes to nested array #63

Open
twaddell opened this issue Sep 4, 2024 · 0 comments · May be fixed by #64
Open

[BUG] React components not updating after remote changes to nested array #63

twaddell opened this issue Sep 4, 2024 · 0 comments · May be fixed by #64
Assignees
Labels
bug Something isn't working

Comments

@twaddell
Copy link

twaddell commented Sep 4, 2024

Describe the bug
When a remote client updates items in an object array the local client state is not updating "reactively" to the changes. It takes another trigger on the UI to see the updated state.

This appears to be due to patch updates to the array not being made in an immutable manner which zustand expects.

To Reproduce
Steps to reproduce the behavior:

  1. Create a state with a object array
  2. On a remote client update a property on an object in the array
  3. On the local client the change is received and state is updated no UI changes occur.

Expected behavior
The UI should update when remote updates to state are processed.

Versions (please complete the following information):

  • Browser: chrome
  • Version: 1.3.1
@twaddell twaddell added the bug Something isn't working label Sep 4, 2024
@twaddell twaddell linked a pull request Sep 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants