Passing props to loading component for next/dynamic
#89606
phil-the-dev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Goals
Non-Goals
No response
Background
With CLS being a major component of a good site, a lot of props that I use are arrays that are used to map through. It would be really nice if the props could be forwarded to the loading component so we can create a good experience for users.
For example, when loading this page I have, I know how many filters there are, but since I can't pass that array into the loader, I'm stuck with a very generic static loading state:
Proposal
It'd be nice to have access to the original props since they are already being passed.
All reactions