Allow root params in App Shell (client)
The App Shell is the generic loading state for a route. It does not depend on concrete param values, so it can be used for every navigation to a route before its params are known. We've decided to special case root params: those that appear above the topmost layout for a given route. These are typically used for params that are low cardinality for a given session, such as the locale. So we allow them to appear in the generic part of the UI, even though they technically might change across pages. We already treat root params as special during static generation, by always including them during fallback shell generation. So this decision is consistent with our existing treatment. This PR updates the client to key App Shells by their root params. Currently, the client assumes that the shell never varies on _any_ params. This updates the assumption so that it only applies to non-root params.
Showing
Please
register
or
sign in
to comment