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
restore implies I want to create store by shorthand (not derived store), and here I can add .on
But in source code we do nothing
In the new major version derived stores cannot be used as targets Deprecate derived units in target #563, so target: restore($b) should throw an error, what is semantically wrong, because restore creates a New store
Use case
I don't see any case with restore($store).
The text was updated successfully, but these errors were encountered:
Proposal
I know cases when
restore
is useful:But with store, looks like it is useless.
effector/src/effector/restore.ts
Line 8 in 2fcfdf7
In the source code it do nothing. And by semantics I think it can confuse with the definition of derived stores:
5
here?restore
implies I want to create store by shorthand (not derived store), and here I can add.on
target
#563, sotarget: restore($b)
should throw an error, what is semantically wrong, becauserestore
creates a New storeUse case
I don't see any case with
restore($store)
.The text was updated successfully, but these errors were encountered: