Add snapshot
to create copy of state created on trigger
#96
Locked
sergeysova
announced in
Done
Replies: 3 comments 4 replies
-
Without const $copy = restore(
sample($source, backup, ({ref}) => ({ref: new Map(ref.entries())})),
$source.defaultState
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just a copy without linking: const $copy = snapshot({ source: $source }) |
Beta Was this translation helpful? Give feedback.
0 replies
-
It was implemented in #150 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Inspired by #95
Beta Was this translation helpful? Give feedback.
All reactions