Skip to content
Discussion options

You must be logged in to vote

When a mutation is triggered from within a component (eg. user updates a task), I use the mutation response to update the relevant recoil-js state.

it seems like you're mixing server state and client state here. Why would you need to update recoil state after the mutation? I would need to see some code, but generally, I would say that after a mutation, you would want to update a query, which you can either do with invalidation (refetch), or via updates from mutation responses.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Kay2dan
Comment options

@Kay2dan
Comment options

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