You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `dynamicIO` is enabled, we're triggering a warmup request in dev mode. This ensures that replayed logs are associated with the correct environment (`Prerender` vs. `Server`), by seeding the caches before the actual render.
This PR fixes two issues with the dev warmup:
- Ensures that cache keys are identical between the warmup, the subsequent dynamic render, and the dynamic validation, by providing the HMR refresh hash (part of the cache key) for all dev render phases.
- Ensures that stale cache entries are discarded during the warmup, by providing the implicit tags also during the warmup (and the dynamic validation).
it('logs with Prerender or Server environment depending based on whether the timing of when the log runs relative to this environment boundary',async()=>{
23
23
letbrowser=awaitnext.browser('/')
24
-
// At the moment this second render is required for the logs to resolves in the expected environment
25
-
// This doesn't reproduce locally but I suspect some kind of lazy initialization during dev that leads the initial render
26
-
// to not resolve in a microtask on the first render.
0 commit comments