20 questions
1
vote
1
answer
159
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
310
views
Getting a 'Hydration mismatch' when using splitProps in SolidStart/SolidJS
I'm getting a hydration mismatch error for this code, and I don't really understand why.
Hydration Mismatch. Unable to find DOM nodes for hydration key: 00000000100... and indicating the child of this ...
0
votes
1
answer
494
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 ...
0
votes
1
answer
136
views
How can I add HTTP cache headers in SolidJS/Solid Start?
How can I add Cache-Control headers to static files and route responses in Solid Start?
1
vote
1
answer
320
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/...
0
votes
1
answer
268
views
SolidJS SolidStart Context is not valid: How to setup initial Context state and update Context state after the page loads
Currently I am updating my state in each of my pages.
Where should I initialize my app state so the state can be displayed on every page in my app?
in my app.tsx or in entry-server.tsx ?
After that, I ...
2
votes
1
answer
287
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 ...
0
votes
2
answers
235
views
Create Effect not executing in Solid Start
The function getName is working fine and shows the name of the person with id 1 after fetching it from my database but this code doesn't log anything to console not even the debug console.log("...
1
vote
1
answer
416
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
400
views
How to get and set simple data or a variable in a session (Solid Start)?
I tried setting the username and then reading it in a session in the client side in the following code but it gives an error:
import { useSession } from "vinxi/http";
function getSession() {...
1
vote
1
answer
361
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 ...
0
votes
1
answer
72
views
Styling issues with tinymce in solid-start
I am trying to use tinymce in a solid-start project. TinyMCE is opening when I need to but it is not showing the toolbar, and is not actually letting me edit. I suspect this is a style issue.
I ...
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 ...
1
vote
0
answers
117
views
solidjs provider not working when using children helper method
I have a theme provider written like this
import { Accessor, JSXElement, Setter, children, createContext, createEffect, createSignal, onMount, useContext } from "solid-js";
import constants ...
2
votes
1
answer
400
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 ...