SolidJSS
SolidJSโ€ข3y agoโ€ข
2 replies
Bersaelor

How to get `useParams` in the "root.tsx" in a server-rendered-page.

Inside the root.tsx before any FileRoutes are resolved, how can we get the full path / the params for the current html-request?

When I use useParams().id inside the root.tsx, I always get undefined.
Was this page helpful?