-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension causing pages to error. #125
Comments
Thank you for reporting it. I'll investigate it. |
I had to disable the extension as well I was getting the same error without even changing my code. |
Hello @koba04 I'm part of the team at Clerk at hopefully I'll shed some light as what is happening. Background knowledgeThe Clerk components load their own version of react-dom. Inside of these components swr is beeing used. I have managed to replicate this error only when swr is used both from the hosted app and the app mount the Clerk components. Deep diveI had a look at the code base of vercel/swr and swr-devtools (yours). My understanding is that
|
@panteliselef The error is https://legacy.reactjs.org/docs/error-decoder.html/?invariant=321
I didn't expect the case of multiple SWRs to be used. This seems to be caused because SWRDevTools uses a different React instance from the app. |
I was thinking a similar approach. Would require PR to vercel/swr or is this something that can be solved from the devtools ? |
Yeah, This approach requires to send a PR to |
I just published a new version (1.3.2) to fix this so please try it once the version is available. The Firefox version is available. https://addons.mozilla.org/en-US/firefox/addon/swr-devtools/ |
I'll close this as closed, but if you had a similar behavior please file a new issue. |
Try visiting https://dashboard.clerk.com/ with this extension enabled on Firefox, other browsers/websites not tested.
ced2eb8edb6521c4.mp4
The text was updated successfully, but these errors were encountered: