Next.js Discord

Discord Forum

how to effectivly make a private routes in nextjs for some pages?

Unanswered
Finnish Spitz posted this in #help-forum
Open in Discord
Finnish SpitzOP
Is using useEffect during the initial load with validation sufficient, or is it preferable to store it in local storage?

Goals: To expedite the loading time
BE: FIrebase

6 Replies

you should check the auth serverside. That will reduce the time for the fetch (also because of the cache) and effectivly fetch faster 👍
@Finnish Spitz solved?
@B33fb0n3 <@773801427544965143> solved?
Finnish SpitzOP
@Siberian what if i am using seeverless like firebase?
@Finnish Spitz solved?
@Finnish Spitz ?