jer3m01
jer3m01
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
SSolidJS
Created by Max on 9/6/2024 in #support
Possible to define more specific predicated for when prop on Match or Show
they should be avoided (but work, at least currently)
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
Yeah then a helper function like the one you made is needed
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 can use anything as your condition, and you're not required to use the callback (but you lose typeguard) So you can have
<Match when={typeof varname() === "number"}>
Number is {varname()} // however typescript doesn't understand type as number and thinks it might be undefined/null
</Match>
<Match when={typeof varname() === "number"}>
Number is {varname()} // however typescript doesn't understand type as number and thinks it might be undefined/null
</Match>
28 replies
SSolidJS
Created by feras6169 on 9/5/2024 in #support
How do you recommend using SolidStart to access data for native mobile apps?
If you want to make both a website and an API for native then yes. Otherwise I wouldn't recommend, you won't end up using any of the features SolidStart provides and it will be weaker then API focused alternatives.
10 replies
SSolidJS
Created by Grahf on 9/2/2024 in #support
onChange only fires when press enter ?!
yep same as native onchange event, react has a custom behavior
8 replies
SSolidJS
Created by Sudhagar on 8/20/2024 in #support
What is the logic for the generatino of hyd. keys eg 0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-1-0-0-0-0-0-0-0-2
Longer explanation of the new system here (but we ended up using letters instead of special characters for css compatibility) https://discord.com/channels/722131463138705510/817960620736380928/1220769886242996354
3 replies
SSolidJS
Created by Sudhagar on 8/20/2024 in #support
What is the logic for the generatino of hyd. keys eg 0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-1-0-0-0-0-0-0-0-2
This is the old system used for ids, each number is the position of the node in the tree, separated by -. If you update solid to latest the new ids look like 001a1020b104, same meaning (every number is the position in the tree) but this time there's no separator and multidigit numbers start by a letter for their lenght (a = 2 digits, b = 3, ...)
3 replies
SSolidJS
Created by Daniel Sousa @TutoDS on 8/19/2024 in #support
Cookies banner
Small question: are you planning on using 3rd party analytics or tracking? you can use corvu's drawer https://corvu.dev/docs/primitives/drawer/, kobalte's dialog https://kobalte.dev/docs/core/components/dialog or i would recommend a simple fixed div at the bottom of the screen
6 replies