Skip to content

Update context in mutable way with assign #1356

Answered by mattpocock
ghost asked this question in General
Discussion options

You must be logged in to vote

You'll definitely get a kick out of using @xstate/immer. Importing assign from there will allow you to implement the above code as it is.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ghost
Comment options

@mattpocock
Comment options

@ghost
Comment options

@davidkpiano
Comment options

@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants