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

Found a minor bug in React useConnect state using Lists. #237

Closed
potetball opened this issue Mar 30, 2020 · 2 comments
Closed

Found a minor bug in React useConnect state using Lists. #237

potetball opened this issue Mar 30, 2020 · 2 comments

Comments

@potetball
Copy link

When updating/modifying lists using useConnect, it overwrites state completely.
Workaround that i used: modify dotnetify-react useEffect function to combine state before setState.
from
vmData.current = newState;
to
vmData.current = Object.assign({},vmData.current,newState);

great work by the way,
cheers

@dsuryd
Copy link
Owner

dsuryd commented Mar 31, 2020

Thank you! Would you like to submit a PR?

dsuryd pushed a commit that referenced this issue Apr 7, 2020
@dsuryd
Copy link
Owner

dsuryd commented May 14, 2020

Fixed in v3.7.

@dsuryd dsuryd closed this as completed May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants