-
-
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
[Bug]: Defer + single resolved promise causes "Deferred data aborted" error in dev tools #9706
Comments
I'm having same issue Loader
calling it
|
Seeing the same issue as well! |
I'll look into detecting this, but this isn't really a valid use case for |
@brophdawg11 - What about cases where you'd want to conditionally await? For example, when you either want to grab data from a cache or fetch if there is nothing in the cache. |
That would be a valid use case, but it's not the use case described in this issue 😜. The linked PR will get rid of the console error 👍 |
Aw man, my bad! You're totally right. Appreciate the work you're doing! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
This is fixed with the new update, Thanks and we all appreciate the work you guys are doing... |
What version of React Router are you using?
6.4.0
Steps to Reproduce
I modified the Deferred example app: https://stackblitz.com/edit/github-roj5bp?file=src/routes.tsx
defer
contains only a single resolved promiseIs this behavior expected? I can't find any info about it on the web.
Expected Behavior
The object passed to defer has just one resolved value:
So I would expect that there should not be any errors around deferred data being aborted.
Actual Behavior
The error is thrown. One thing to note, is that if you click on the Deferred link (which is unmodified from the example app) and let it load, the error does not occur.
The text was updated successfully, but these errors were encountered: