jer3m01
jer3m01
SSolidJS
Created by Garzec on 4/11/2025 in #support
Is it recommended to use Start even if you don't need it?
yeah output/public should have the html and js bundles
9 replies
SSolidJS
Created by Garzec on 4/11/2025 in #support
Is it recommended to use Start even if you don't need it?
yes only does client side
9 replies
SSolidJS
Created by Garzec on 4/11/2025 in #support
Is it recommended to use Start even if you don't need it?
for SPA only set ssr: false in app.config.ts for SSG set
server: {
prerender: {
crawlLinks: true,
}
}
server: {
prerender: {
crawlLinks: true,
}
}
9 replies
SSolidJS
Created by Garzec on 4/11/2025 in #support
Is it recommended to use Start even if you don't need it?
Start is also compatible with Tanstack Router (difference in features) but using Astro or Tanstack Start is also a good choice
9 replies
SSolidJS
Created by Garzec on 4/11/2025 in #support
Is it recommended to use Start even if you don't need it?
Solid Start does ship with the router preconfigured with file routes (only available in start). Start is SPA first with additional optional features for server stuff. Another nice feature is preconfigured SSR (which also allows build time only like SSG) and deployment presets for any host. I start all my projects with it now, I don't see any cons over vanilla Solid + Vite
9 replies
SSolidJS
Created by Puru on 2/22/2025 in #support
useDraggable how to make second argument reactive
You can just make position an accessor:
useDraggable(ref, [
positionPlugin({current: position // no ()
...
]);
useDraggable(ref, [
positionPlugin({current: position // no ()
...
]);
5 replies
SSolidJS
Created by Puru on 2/22/2025 in #support
useDraggable how to make second argument reactive
Because when you call position() it becomes a real value and not a signal anymore, since it's not in an effect it doesn't rerun
5 replies
SSolidJS
Created by Puru on 2/22/2025 in #support
useDraggable how to make second argument reactive
yeah it has to be an accessor or you have to wrap useDraggable in a createEffect user side
5 replies
SSolidJS
Created by Eatham on 11/9/2024 in #support
Jetbrains IntelliSense doesn't work
Also I recommend checking out https://docs.solidjs.com/reference/basic-reactivity/create-resource for doing your api request
5 replies
SSolidJS
Created by Eatham on 11/9/2024 in #support
Jetbrains IntelliSense doesn't work
Your IDE is correct, you should call the expression:
...
<div>
Last User is {user()}
</div>
...
...
<div>
Last User is {user()}
</div>
...
5 replies
SSolidJS
Created by agentsmith on 10/31/2024 in #support
Reactivity with shadcn-solid textfield
It also assures you're following the correct accessibility patterns
14 replies
SSolidJS
Created by agentsmith on 10/31/2024 in #support
Reactivity with shadcn-solid textfield
What are your issues with NumberField? It handles everything you've listed for you and much more.
14 replies
SSolidJS
Created by ensi on 9/8/2024 in #support
Hydration mismatch when trying to reference slot element outside of JSX
Also
const hasElementsOnAnySide = local.leadingElement || local.trailingElement; // not reactive

// should be:
const hasElementsOnAnySide = () => local.leadingElement || local.trailingElement;
const hasElementsOnAnySide = local.leadingElement || local.trailingElement; // not reactive

// should be:
const hasElementsOnAnySide = () => local.leadingElement || local.trailingElement;
25 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
yes
28 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
keyed makes the component rerun when the value changes
28 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
not sure if they're falsy
28 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
or a proxy maybe?
28 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
you return a getter instead
28 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
oh so you need it to work with falsy values?
28 replies
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
You're probably able to make a generic helper function, something like maybeType(varname(), "number") => number | undefined
28 replies