DEV Community

Shubham Kumar
Shubham Kumar

Posted on

Will it be good idea to use Incremental Static Regeneration if data from backend is user specific?

I have a challenge page where in public view (No user is logged In) backend will send say list if [A,B,C] challenges.
While if user is logged in & he is admin then backend will send some additional challenges like [A,B,C, 1 ,2]. So in this case will it be good idea to use Incremental Static Regeneration? Or shall I only use GetServerSideProps?

I'm also using SWR in components & passing passing the values of GetServerSideProps as default value

Top comments (0)

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay