Page-specific loader components #30023
alexparish
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
getServerSidePropsto SSR the initial page. Subsequent pages are client-side rendered with props provided bygetServerSideProps.I had hoped to be able to define page-specific loader components so I could layout skeleton loaders to roughly match page contents, but it doesn't seem there's a straightforward way of defining these for a page.
My first attempt was to follow the approach outlined in the following StackOverflow question:
https://stackoverflow.com/questions/68375270/individual-loading-animation-for-each-page-with-next-js
Is this something that could be supported natively by Next?
As a hack, I have been using the following approach in
_app.jsx:Beta Was this translation helpful? Give feedback.
All reactions