Angelelz
Solid way to Show components based on information from the session or cookies or server only data?
With RSC, our team is used to use data available only in the server in the context of a request, like from headers, cookies, or even server only string arrays. For example:
Is there a "solid way" to do this in solid start? Or we should just use
createResource
and a server actions? I'm hoping there is a way to run code only on the server without it being a server action.18 replies
useLocation and useNavigate in the layout?
I'm getting this stupid "<A> and 'use' router primitives can be only used inside a Route." error when I use those primitives in the Layout.
This is my app.tsx:
And I'm using the A component and useNavigate inside MainNav. Is that not the solid way? What is the solid way? Thanks
44 replies