Closed ndrean closed 1 year ago
I'm submitting a ...
I can't use redirects anymore. A demo where I am supposed to return an object {redirect: "/"} for the resolve function.
{redirect: "/"}
resolve
https://stackblitz.com/edit/react-wwmbrg?file=src%2Findex.js,src%2FNavbar.jsx,src%2Frouter.jsx
I missed the point with the middleware I used. Fixed in the demo.
I'm submitting a ...
Notes:
I can't use redirects anymore. A demo where I am supposed to return an object
{redirect: "/"}
for theresolve
function.https://stackblitz.com/edit/react-wwmbrg?file=src%2Findex.js,src%2FNavbar.jsx,src%2Frouter.jsx