Skip to content

How to get fresh SSR data Instantly #53034

Answered by hyjoong
thanhtutzaw asked this question in Help
Discussion options

You must be logged in to vote

I agree that using SSR can improve the initial loading speed compared to CSR. Therefore, it seems like a good idea to use SSR when a user visits the page for the first time. However, I'm concerned that fetching data again through SSR when a user clicks the "Like" button might result in slower loading speeds compared to CSR.

So, my suggestion is to use SSR to fetch the initial data, and then use CSR to fetch the updated data after the user interacts with the "Like" button. This way, we can achieve faster loading speeds and a more responsive user interface.

Implementing this approach might require writing the code to fetch data again in CSR, in addition to what was already written in the ge…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@thanhtutzaw
Comment options

@hyjoong
Comment options

@thanhtutzaw
Comment options

@hyjoong
Comment options

Answer selected by thanhtutzaw
@thanhtutzaw
Comment options

@hyjoong
Comment options

@thanhtutzaw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants