Skip to content
Discussion options

You must be logged in to vote

I would just not invoke mutate if the id is undefined. But I think your approach works as well.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@ViliamKopecky
Comment options

@TkDodo
Comment options

@ViliamKopecky
Comment options

@TkDodo
Comment options

@ViliamKopecky
Comment options

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