Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
indigo.snowboll
Posts
Comments
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
Thanks for jumping in, @brenelz !
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
I got it to work. Seems like changing that last/stray
createResource
to
createAsync
fxed it.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
I'm seeing some inconsistencies in the examples, eg. using
createResource
or
createAsync
for the same things.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
I'm also getting Hydration Mismatch errors left and right, but that can be something else.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
It doesn't work. I have another layout that is only for protected access, and the router gets very confused on which content to show.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
Using FileRoutes, the common advice for dealing with user sessions is on the layout, so, that's why I'm putting it there.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
Not necessarily. I just want the functionality.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
I'm doing that with the
Switch
/
Match
.
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
Eg. try accessing github logged out vs logged in. You get 2 different pages, on the same exact path ("/").
16 replies
S
SolidJS
•
Created by indigo.snowboll on 4/28/2025 in
#support
Same route for private and protected content
In this case I want to show the public home page.
16 replies