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
Although the patch() signature looked promising to eliminate potentially unpleasant syntax like...
store.write({
...store.read(),roses:"white"})
...in favour of
store.patch((state)=>({
...state,
roses.white}))
...in fact Typescript features mean that Typescript doesn't force inference (and hence excess property checks) of the Patcher function, without an explicit declaration like this, which is probably worse...
Although the patch() signature looked promising to eliminate potentially unpleasant syntax like...
...in favour of
...in fact Typescript features mean that Typescript doesn't force inference (and hence excess property checks) of the Patcher function, without an explicit declaration like this, which is probably worse...
Consequently unless an alternative can be found, the Store API should have
patch()
removed before 2.0.0.The text was updated successfully, but these errors were encountered: