Replies: 1 comment
-
@BMR11 I think you will probably want to use Here is an entry in the docs describing the difference between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to implement x-state persistence and I am following this https://stately.ai/blog/2023-10-02-persisting-state
I am using subscribe on my root-level actor to listen to context changes:
It looks like this is fired many times, even if there is only a single value changed in my context object. Also, the value of
updatedContext
is ALWAYS the same (updated one but all console logs will print the same object value).I do not want to call
writeToMyStorage
for the sameupdatedContext
. I can fix this by deep comparing updatedContext from the last value but just wanted to check if I am using it wrong or if there is any better way to achieve this.Thank you
Beta Was this translation helpful? Give feedback.
All reactions