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)