TanStackT
TanStack2y ago
1 reply
wet-aqua

Use explicit params on loader function

I have a pathless route of "/_layoutMain" which is basically my layout.
Now I also have a "/channels/$guildId" route.

But In the loader of "/_layoutMain" I need to get the "$guildId" of "/channels"
But the loader param object is now type of Record<never, string> So I can't convince it that there is indeed a param here.

/_layoutMain
  /channels/$guildId <- get this param from _layoutMain loader
Was this page helpful?