Skip to content

Serialization and cancellable effects #383

Answered by YanLobat
bergkvist asked this question in Q&A
Discussion options

You must be logged in to vote
  1. For localStorage there are at least two libraries to work with:
    https://www.npmjs.com/package/effector-persist
    https://github.com/yumauri/effector-storage
    or you could link store with LS via watchers like
    $someStore.watch((actualValue) => localStorage.setItem('myTestKey', actualValue)
  2. Also effector provides you domains(essential thing for testing and SSR/SSG) - namespaces, in other words you could create every application store under that domain and later on serialize it or hydrate
  3. Side-effects are managed via effects, example with cancelation

More examples to go: https://github.com/zerobias/effector#more-examples

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@doasync
Comment options

doasync Dec 26, 2020
Collaborator

Answer selected by zerobias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #383 on December 11, 2020 16:03.