Is there a way to get states before set function? #799
-
for instance,
|
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Feb 12, 2022
Replies: 1 comment 1 reply
-
Yes, that's what the second argument create((persist(immer(log((set, get) => { |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SeongwoonHong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's what the second argument
get
is for: