You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we please clarify: what if an object inside of an array is accessed? Does it apply that "nested objects are accessed, stores will produce nested store objects"? Or, is it ignored?
If nested objects will trigger subscribers, it is assumed that using the spread operator to signal that an array has changed will not break the subscribers; so that should be the case or the docs should warn about that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can we please clarify: what if an object inside of an array is accessed? Does it apply that "nested objects are accessed, stores will produce nested store objects"? Or, is it ignored?
If nested objects will trigger subscribers, it is assumed that using the spread operator to signal that an array has changed will not break the subscribers; so that should be the case or the docs should warn about that.
https://www.solidjs.com/docs/latest/api#arrays-in-stores
Beta Was this translation helpful? Give feedback.
All reactions