Skip to content

Conversation

@sinasab
Copy link
Contributor

@sinasab sinasab commented May 9, 2025

The first call to a mutation stays on the Pending state instead of Loading(None). This PR fixes it so that called mutations get properly set to Loading, even when they don't have a value.

The update more directly matches the behavior in QueryState.set_loading.

The first call to a mutation stays on the Pending state instead of `Loading(None)`. This PR fixes it so that called mutations get properly set to `Loading`, even when they don't have a value.
Copy link
Owner

@marc2332 marc2332 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right

@marc2332 marc2332 merged commit 6e78c6d into marc2332:main May 9, 2025
1 check passed
@sinasab sinasab deleted the sina/fix-mutation-loading-state branch May 9, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants