-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Get "Expected fetch controller: :r1:" when calling fetcher.load and revalidator.revalidate #12049
Comments
This doesn't cause any runtime issues right? Just an unexpected thrown error in the background, the associated console log, and maybe a |
Yes - as far as I can tell, there's no bug caused by this, but the console error was worrying and (to me) suggested that there was a problem in my application or I was using fetchers incorrectly. Thanks for removing it! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Reproduction
https://stackblitz.com/edit/remix-run-remix-l7uvb2?file=app%2Froutes%2F_index.tsx
Open your developer tools console and click Trigger revalidations
System Info
Used Package Manager
npm
Expected Behavior
It should be possible to call fetchers and revalidators without throwing errors.
Actual Behavior
If you call
Then you will reliably trigger an uncaught error. If there's idle state to be dealt with here, it should possibly be dealt with behind the scenes. The revalidator docs state:
Maybe we're supposed to handle race conditions with
fetcher.load
, but I don't see any notes about having to do that in the fetcher docs.The text was updated successfully, but these errors were encountered: