Next.js Discord

Discord Forum

client-side update

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
When search params change on a Server-Side Rendered (SSR) page, Next.js doesn't automatically re-render the entire page on the server due to search param changes. This is because SSR happens once on the server on the initial request, and subsequent updates should ideally occur efficiently on the client-side for better performance and user experience.
Based on the updated search params, the client-side JavaScript can fetch necessary data using methods like fetch or the getStaticProps or getServerSideProps functions (but on the client-side this time).

The above is what I've understood so far. is this right?
and if it's right, is there anyway to display loading status of that client-side fetch?

0 Replies