-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
add a test for #8459 #8461
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
add a test for #8459 #8461
Conversation
@lovasoa is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
@benmccann : I see you re-triggered the tests, but they are supposed to fail, in the current state of this PR. It just adds a test to the test suite that illustrates the bug reported in #8459 . I am willing to help with solving the bug, but I would need some pointers. Looking at the code, I guess the issue is here: svelte/src/runtime/internal/await_block.ts Lines 82 to 101 in d42ca04
I can see that that the block always immediately changes to a pending state when the function runs, even if the given promise is already resolved. But I do not grasp what exactly is the role of each field in On a broader level, I am not sure I understand why a special |
@Rich-Harris @tanhauhau , I see you are the latest contributors to this part of the code, I would love if you could give me some pointers too :) |
The underlying issue is that promises that are resolved already are still treated as "need to render the await first and then resolve once the result is there". We want to look into changing this, but that won't happen before Svelte 5. |
Ok, should I close this pr, then ? |
I added the "one day" label instead of closing so it has visibility, no further action needed from your side 👍 |
Closing Svelte 4 PRs as stale — thank you (this issue was fixed in Svelte 5) |
See #8459
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.Tests
npm test
and lint the project withnpm run lint