Closed jaydenseric closed 6 years ago
I'm doing a thing where I use the Redirect
component from @reach/router
and see this a lot.
Yep, it's annoying but at least harmless. I hope to be able to get to it this weekend; I've recently been busy soft-launching https://enamor.app (which BTW happens to use graphql-react
✌️).
🚢 Fixed in v3.
If you unmount a
Query
component (specifically theGraphQLQuery
component within it) while it is still loading a query, you see a React dev warning like this:This is because a
setState
call happens after the request is complete to update the loading state asfalse
, see here. This should be prevented from happening after the component has unmounted.