Specified route configuration error using Fuse React Maximum update Depth exceeded:

Asked

Viewed 14 times

-2

I am using the Fuse template for React and need to configure private routes for each specific user profile, following the documentation I set my route file by placing the path parameter and the value, and set up login with the default Fuse documentation configuration, but when logging in I get loop error when trying to access routes, which I am doing wrong?

File Fuseroutesconfig

    ...FuseUtils.generateRoutesFromConfigs(routeConfigs, ['admin', 'retailer']),
    {
        path     : '/',
        exact    : true,
        auth: null,
        component: () => <Redirect to="/login"/>
    },
    {
        component: () => <Redirect to="/pages/errors/error-404"/>
}

File Routes Config

const accountRoutes = [
  {
    path: "/account/list",
    exact: true,
    auth: ['admin', 'retailer'],
    component: FuseLoadable({
      loader: () => import("./content/account/Account"),
    }),
 }
]
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.