Skip to content

'idle' state (removal) in v4 - queries vs. mutations #4633

Answered by TkDodo
targumon asked this question in General
Discussion options

You must be logged in to vote

queries and mutations are fundamentally different. mutations don't have a fetchStatus like queries do. Every mutation starts off in idle state, while only a small amount of queries did actually start out in idle state.

When we introduced the fetchStatus for queries, the idle state stood out because it couldn't be combined with certain fetch states. For example, you couldn't be idle and paused - that didn't make sense.

So while unification is generally good, I think we have two different cases here that justify the differences.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by targumon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants