325 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
132
views
Am I incorrectly using BetterAuth's useSession()?
Working on a new project with SolidStart and running into an issue.
I'm currently importing the useSession() function from my client-side Better-Auth instance. According to documentation, I should ...
0
votes
1
answer
43
views
No failed login feedback using BetterAuth and SolidStart
Building a small login form for my first SolidJS project using BetterAuth.
I've got the database setup, both a client AND server instance of better-auth going, etc.
In my login form handler, I have ...
-4
votes
1
answer
53
views
Streaming text for CURL with SolidJS & Vercel
Is there any way to stream text when my site gets CURL'd, similar to https://malted.dev/ ? I've tried using Vercel's functions, but I could not get it to return anything other than the HTML. If ...
0
votes
2
answers
119
views
Solid signal goes to [""] instead of []
I made a signal with
createSignal<Array<string>>([]);
And I made buttons to add/remove items. but when removing, even if I explicitly set it to [] the array goes to be [""] for ...
0
votes
0
answers
21
views
Reactive Graph Ownership across Dynamic Contexts with Disposed Owners
In SolidJS, consider an application rendering multiple isolated islands using SSR + hydration, each with dynamically scoped context providers and memoized resources. Inside a deeply nested component, ...
1
vote
2
answers
57
views
Provide manual tracking context when performing reads
Solid.js determines the tracking context (i.e. the effect that should rerun) when reading a reactive primitive (e.g. signal, memo) based on the library's internal global stack.
I need to slowly ...
1
vote
1
answer
149
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
67
views
createComputed with 2 dependencies, one dependency changes quickly the first dependencies first reactivity is lost
createComputed(on(() => {
let pvs = stockfish.pvs[fen()]
console.log('dep', fen(), pvs)
if (pvs) {
let res: [FEN, MultiPV] = [fen(), pvs]
return res
...
1
vote
2
answers
215
views
What's the purpose of splitProps and mergeProps in SolidJS?
import { Accessor, mergeProps, splitProps } from "solid-js";
type ButtonProps = {
count: Accessor<number>;
listener: (step: number, _event: MouseEvent) => void;
};
export ...
0
votes
1
answer
53
views
Dynamically naming props in Solid JS
I would like to pass some dynamically created properties names to a component, based on values taken from a configuration file. I was wondering if such a thing is possible in Solid?
Here's the sort of ...
0
votes
1
answer
75
views
How can I reset createResource() .error to null?
I want to implement a refetch function manually when user clicked the button.
Currently whenever I got an error from API, I'm showing a toast when the error appear, now I want to add "Retry" ...
0
votes
0
answers
68
views
How to update a ref with a signal in Solid.js to control table scroll?
I'm working with Solid.js and have a table with rows and cells. I'm using signals to manage the selected row and cell indices, but I need to update a ref (reference to the selected cell) based on ...
user avatar
user30086561
1
vote
1
answer
126
views
solidjs: SVG inside SolidJS not referenced use ids
Title: Issue with in SVG inside SolidJS
Description:
I'm trying to embed an SVG inside a SolidJS component, but I'm having issues with <use> elements. When I open the SVG file directly in the ...
0
votes
1
answer
301
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
467
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 ...