Question of initial route
Answered
Spoonbill Sandpiper posted this in #help-forum
Spoonbill SandpiperOP
I'm quite new to next.js.
When enter to localhost:3000, I'd like it to navigate to login page.
So I did navigate in useEffect but this does render Home component first and then goes to login component.
I'm not sure, it could not that bad because I can hide using kind of loading component, but want to know am I right or missing something.
When enter to localhost:3000, I'd like it to navigate to login page.
So I did navigate in useEffect but this does render Home component first and then goes to login component.
I'm not sure, it could not that bad because I can hide using kind of loading component, but want to know am I right or missing something.
Answered by Cuvier’s Dwarf Caiman
1 Reply
Cuvier’s Dwarf Caiman
Answer