Replies: 2 comments 2 replies
-
Is your homepage fetching those json every time it renders? |
Beta Was this translation helpful? Give feedback.
1 reply
-
What do you mean by this exactly? You mean there is a complete page refresh? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a next.js project with quite a lot of pages. My homepage fetches some events' json and renders them (~ 10 cards), all fetched client-side.
I have this annoying problem: When I navigate through
next/link
from homepage to another page, say "profile.js" page, It's almost fast and OK. But when I click on home link, it gets a little stuck and takes some time to render the page.First it hangs (about 2 seconds), Then it starts showing the loading, then it shows the page.
I can somehow manage this by clearing the state of redux on homepage's unmount. But that's not what I want. Because I really want the "App-like" experience.
How can I achieve this?
Beta Was this translation helpful? Give feedback.
All reactions