Update specific object value from store #305
antoci-alin
started this conversation in
General
Replies: 3 comments
-
store.update(state => {
return {
...state,
second: {
...state.second,
foo: 10
}
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you so much! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @NetanelBasal, .. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys!
I was wondering, how can you update a value in the store, if it's a value of an object? To be more precise:
state looks like this:
If I want to update foo or ado, how can I do it?
PS.: Sorry for my dummy question.
Beta Was this translation helpful? Give feedback.
All reactions