next.js
448347a3 - [CC] fix: cachedNavigations missing asyncApiPromises in resumes (#93827)

Commit
120 days ago
[CC] fix: cachedNavigations missing asyncApiPromises in resumes (#93827) When rendering dynamically for `cachedNavigations`, we do a staged render so that we can recover a static prefetch from the stream. However, we weren't delaying params properly because we were missing `asyncApiPromises` and `fallbackParams` from the store, so dynamic params would incorrectly resolve in the static stage. This was masked in the tests, which accidentally had a bunch of `await setTimeout(300)` delays left in. so components that were meant to test when params resolve were always resolving in the dynamic stage, because timeouts are tasky. I'm not confident in the fix for missing `fallbackParams`, it's robot-assisted and i'm not very familiar with those bits, but it seems to work
Author
Parents
Loading