Pass fallback params to the dev validation worker as maps (#96210)
The dev validation snapshot flattened both fallback param sets into arrays of entries before handing them to the worker, and the worker rebuilt a `Map` from each one on the other side. Neither step is needed, because the structured clone that carries the snapshot across the `worker_threads` boundary supports `Map` natively, so the maps can travel as they are. Dropping the conversion on both ends also lets the two snapshot fields be typed as `OpaqueFallbackRouteParams` directly, and it makes them consistent with `rootParams` and `implicitTags`, which the snapshot already passes through untouched. The neighbouring `headers` spread stays as it is, because `Headers` is not a structured-cloneable type and those entries genuinely do have to be materialized before the snapshot is sent.
Showing
Please
register
or
sign in
to comment