layout for dynamic params routes #6179
Unanswered
alirezakasirzare
asked this question in
Q&A
Replies: 1 comment
-
|
please provide a complete minimal reproducer project |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I want to create a SaaS application so i need to have bussiness slug in path like this :
/dashboard/$slug/...
/dashboard/i/login
/dashboard/i/register
but i cant create layout for slug, it give me this error :
Invariant failed: Could not find an active match from "/dashboard"
this is my routes :
│ index.tsx
│ __root.tsx
│
└───dashboard
│ index.tsx
│
├───$slug
│ │ route.tsx
│ │ settings.tsx
│ │ test.tsx
│ │
│ └───customers
│ index.tsx
│
└───i
└───_auth
login.tsx
register.tsx
route.tsx
Beta Was this translation helpful? Give feedback.
All reactions