Pathless layout routes in new alpha version #340
-
I have been testing alpha version of router and I would like to know how can I make multiple pathless layout routes on same level.
|
Beta Was this translation helpful? Give feedback.
Answered by
tannerlinsley
Oct 18, 2022
Replies: 3 comments 2 replies
-
This is on my todo list. Very high priority. I believe it will be as easy as passing path: false :) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
KaRkY
-
I see it too. Working on a fix
Tanner Linsley
Sent with Spark
…On Oct 21, 2022 at 4:07 AM -0600, Rene Svetina ***@***.***>, wrote:
Nice I can confirm that it works but now I found problems with Link and Mantine polymorphic components. Typescript complains that search and params are missing. Both of their type deffinition looks like () => never. I don't know if it's router problem or Mantine.
<Text component={match.Link} to="/">Testing</Text>
Type '{ children: string; component: <TTo extends string = ".">(props: { to?: ToPathOption<AllRouteInfo<RouteConfig<"__root__", string, string, "", AnyLoaderData, {}, unknown, unknown, {}, AnySearchSchema, {}, {}, Record<...>, {}, (RouteConfig<...> | ... 2 more ... | RouteConfig<...>)[]>>, "", TTo> | undefined; hash?: Upd...' is missing the following properties from type 'Omit<{ to?: string | undefined; hash?: Updater<string, string> | undefined; from?: "" | undefined; } & { search: (current: {}) => never; } & { params: (current: {}) => never; } & { ...; } & ... 4 more ... & { ...; }, "component" | keyof TextProps>': search, params
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@tannerlinsley |
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
This is on my todo list. Very high priority. I believe it will be as easy as passing path: false :)