You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiongeneratePaths(route: RouteObject,parentPath=''){const{ path, children }=routeconstfullPath=cleanDoubleSlashes(withoutTrailingSlash(`${parentPath}/${path??''}`))letpaths=newSet([fullPath])if(children){for(constchildRouteofchildren){constchildPaths=generatePaths(childRoute,fullPath)paths=newSet([...paths, ...childPaths])}}returnpaths}// Paths should be uniqconstpaths=routes.flatMap(route=>Array.from(generatePaths(route)))
The text was updated successfully, but these errors were encountered:
Based on
react-router@v6
The text was updated successfully, but these errors were encountered: