Repository navigation
Commit d7b9b98
committed
fix: deduplicate deferred retry calls per owner in runDeferredSwaps
When multiple useDeferredValue slots share the same root owner and are
all disposed (e.g. after a root-level suspension rollback), each slot
called owner.retry(true) independently. The first retry synchronously
remounts the entire root; if that mount suspends, the second retry
starts another mount, incrementing the generation and orphaning the
first retry's ping closure. The original wakeable's settlement then
never commits because its generation guard fails.
Track which owners have already been retried within a single
runDeferredSwaps pass so each owner retries at most once.1 parent b7c7baa commit d7b9b98
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5031 | 5031 | | |
5032 | 5032 | | |
5033 | 5033 | | |
| 5034 | + | |
5034 | 5035 | | |
5035 | 5036 | | |
5036 | 5037 | | |
| |||
5071 | 5072 | | |
5072 | 5073 | | |
5073 | 5074 | | |
| 5075 | + | |
5074 | 5076 | | |
5075 | 5077 | | |
5076 | 5078 | | |
| |||
5087 | 5089 | | |
5088 | 5090 | | |
5089 | 5091 | | |
5090 | | - | |
5091 | | - | |
| 5092 | + | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
5092 | 5096 | | |
| 5097 | + | |
5093 | 5098 | | |
5094 | 5099 | | |
5095 | 5100 | | |
| |||
0 commit comments