Skip to content

Keep schema loading state with the latest introspection - #4783

Draft
trevor-scheer wants to merge 3 commits into
mainfrom
trevor/latest-introspection-state
Draft

trevor-scheer wants to merge 3 commits into
mainfrom
trevor/latest-introspection-state

Conversation

@trevor-scheer

Copy link
Copy Markdown
Contributor

When two introspections overlap, the first response clears isIntrospecting before the store checks its request counter. The docs can briefly show “No GraphQL schema available” while the current request is still running. An older response with invalid data can also overwrite fetchError.

Check the counter before updating any response state and clear isIntrospecting together with the schema or error. The provider also resets the loading state when an explicit schema supersedes a request. The first commit reproduces the race.

Fixes #4769

@changeset-bot

changeset-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d1508a8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphiql/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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.

[react] A superseded introspection clears isIntrospecting, so the doc explorer flashes "No GraphQL schema available"

1 participant