You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementing Stoplight Search React Component Results in QueryClient
Error
Context
I am following this documentation to add Stoplight Elements Search to a React component on my web app.
Current Behavior
I keep seeing this error in the developer console when trying to render the component:
Uncaught (in promise) Error: No QueryClient set, use QueryClientProvider to set one
Expected Behavior
No QueryClient error gets thrown
Possible Workaround/Solution
I've looked online and it seems to stem from a react-query library, which has these posts about it. I tried implementing the changes mentioned in the Stack Overflow posts to no avail.
Steps to Reproduce
Install the latest versions of Stoplight elements-core (8.1.1) and elements-dev-portal (2.1.3)
This is pretty much a copy/pasta from this documentation page, so the likely culprit to me seems to be a dependency issue since the error seems to stem from a 3rd-party library.
Implementing Stoplight Search React Component Results in
QueryClient
Error
Context
I am following this documentation to add Stoplight Elements Search to a React component on my web app.
Current Behavior
I keep seeing this error in the developer console when trying to render the component:
Expected Behavior
No QueryClient error gets thrown
Possible Workaround/Solution
I've looked online and it seems to stem from a react-query library, which has these posts about it. I tried implementing the changes mentioned in the Stack Overflow posts to no avail.
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: