20 questions
1
vote
1
answer
116
views
How to enforce authentication and redirect on client-side navigation in SolidStart?
I'm building a SolidStart app using the latest version (1.1.0) and cookie-based sessions for authentication.
To check if a user is logged in, I created a server query() function called getUser() that ...
0
votes
1
answer
404
views
I'm getting a "template2 is not a function" error in SolidStart
I have an issue in SolidStart that this one conditional <Show> element is creating this not-too-specific error message, but all the other <Show>s are fine.
Error: template2 is not a ...
1
vote
1
answer
305
views
How can I create a route alias in solidstart's file routing and keep layout?
I'm trying to wrap my head around how to best do nested layouting using SolidStart's file based routing. I have an old app with a "route alias" from "/" to "/some/nested/page/...
2
votes
1
answer
265
views
SolidJS state type unknown useContext TypeScript
In my SolidJS and SolidStart project, I declared my CartContext in my CartContext.tsx
export const CartContext = createContext<>();
const stateDefault = { ... };
export type StatesT = typeof ...
1
vote
1
answer
400
views
Error: <A> and 'use' router primitives can be only used inside a Route
A new commer to solid.js, I'm following a tutorial to get some A routing in solid.js app's navbar . My App.jsx is code is like this:
import { Router, Route, A } from "@solidjs/router";
...
1
vote
1
answer
351
views
Solid-Start seems to not always read URL parameter correctly
I want to use a slug in the URL (localhost:3000/birthdays/:id) to get an ID and then fetch that item using Pocketbase's JS SDK.
On the first attempt, I get this error in my browser:
Cannot read ...
4
votes
1
answer
2k
views
How do we correctly dockerize a Solid.js app?
I want to run a solid.js project from a Docker container but I can't connect to the web-app via local host from my browser for some reason, but I was able to successfully do this with my next.js ...
2
votes
1
answer
387
views
What is the meaning and significance of starting function names with use and create for SolidJs
I am trying to start a side project with SolidStart and I noticed some functions are named the same way a React hook would be named (eg: useLocation, useParams, etc...)
I am confused by this somewhat ...
2
votes
1
answer
2k
views
Loading data from server with SolidStart doesn't work as it should be for me
This is my first try on building a web app, so there might be an obvious answer but I have been struggling for some hours now. Thank you in advance.
This is the code for the page this is about:
import ...
3
votes
4
answers
4k
views
SolidStart client side only rendering
Is there any way to render a component on the client side only in Solid Start.
Just like in next js we can use dynamic to get ssr false. Is there any alternative for that in SolidJS?
I tried to import ...