Skip to content

Comments

fix: avoid unresolved promise if load same id at concurrent#2777

Merged
underfin merged 2 commits intomainfrom
fix-load-same-id-concurrent
Nov 18, 2024
Merged

fix: avoid unresolved promise if load same id at concurrent#2777
underfin merged 2 commits intomainfrom
fix-load-same-id-concurrent

Conversation

@underfin
Copy link
Contributor

Description

close #2751

@netlify
Copy link

netlify bot commented Nov 18, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit f0ae3f3
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/673af8e4212bdd000834147f

@underfin underfin force-pushed the fix-load-same-id-concurrent branch from 8937456 to 9268d2c Compare November 18, 2024 07:27
@IWANABETHATGUY
Copy link
Member

I try the issue case locally, it does not seems to work, still stuck when bundling

@underfin underfin force-pushed the fix-load-same-id-concurrent branch from b3dc4d4 to f0ae3f3 Compare November 18, 2024 08:20
@underfin underfin enabled auto-merge November 18, 2024 08:24
@underfin underfin added this pull request to the merge queue Nov 18, 2024
Merged via the queue into main with commit 9eb7103 Nov 18, 2024
@underfin underfin deleted the fix-load-same-id-concurrent branch November 18, 2024 08:48
graphite-app bot pushed a commit that referenced this pull request Sep 16, 2025
The code for `this.load` waited for the `markModuleLoaded` callback to be called. But this should be able to simplify by using a future.
This PR refactors the code for `this.load` to wait for a future instead. This should also improve the perf a bit because we no longer have to call `markModuleLoaded` for each module.
I wonder if I'm missing something.

refs #4156, #2777, #2772, #2687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: gets stuck when calling this.load with same id in parallel

2 participants