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
Is it useful to add a flag in the super call of your store that enforces immutable entities? The object containing the data is immutable but the entities itself aren't required to be immutable.
This could simply be checked by adding current !== updated after this.onUpdate and throwing an error depending on the result.
Also: what should the default value for the flag be, if it's wanted. Or no default value?
The text was updated successfully, but these errors were encountered:
Is it useful to add a flag in the
super
call of your store that enforces immutable entities? The object containing the data is immutable but the entities itself aren't required to be immutable.This could simply be checked by adding
current !== updated
afterthis.onUpdate
and throwing an error depending on the result.Also: what should the default value for the flag be, if it's wanted. Or no default value?
The text was updated successfully, but these errors were encountered: