-
-
Notifications
You must be signed in to change notification settings - Fork 2
bug: GraphiQL Doc Explorer Loading State #12
Comments
Adding this here for potentially easier resolution: the fetcher function takes care of placing |
So far just removing the line from Explorer component actually breaks things. Passing in undefined for initial schema doesn't help either. Though I'm seeing it in some of the source files like we linked above, looks like the spinner state doesn't make it into the |
we need to stop polluting the schema property too unless we create our wrapper function - works for me locally, maybe you are seeing a different bug ? |
Screenshots or it didn’t happen ;-) with dead ends I hit I tossed my changes so if you’ve got a fix 🚢 |
just went to the version before we adjusted the schema, removed the schema prop entirely AND left the default fetcher. That is the most basic example of GraphiQL with just the fetcher added - can't not not work if you get what I mean :D |
Is your feature request related to a problem? Please describe.
Schema loading based on introspection query takes a while and it says "No Schema Available" in the explorer window while loading.
Describe the solution you'd like
Would be nice if this could read differently, where it could have a loading state.
Describe alternatives you've considered
Additional context
Screenshot of current condition while loading schema:
Based on looking through some of the graphiql repo, we may need to pass schema prop in a different way: https://github.com/graphql/graphiql/blob/5b3e8c3e807c9911491617bb00d8b31f95189ae9/packages/graphiql/src/components/DocExplorer.tsx#L81
The text was updated successfully, but these errors were encountered: