FF
FF
SSolidJS
Created by FF on 9/10/2024 in #support
How to update date object?
"ther it no point in create new date object" for me.
8 replies
SSolidJS
Created by FF on 9/10/2024 in #support
How to update date object?
I got it, but still ther it no point in create new date object. Just want to update object an rerender that.
8 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
Got it. Thanks!
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
So as I understand it right, we should prefer "tabindex" instead of "tabIndex" and also concerns to events? ("onclick" over "onClick")
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
Ok(((
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
That should work.
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
I mean mergeProps=(props, {tabIndex: 1})
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
By the way it works as it should, because to override tabIndex props should go first as a first argument of mergeProps.
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
That would be nice to have only one props/events style.
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
From the compiler perspective it is same
get tabindex() {
return attrs?.tabindex || 228;
},
get tabIndex() {
return attrs?.tabIndex || -1;
},
get tabindex() {
return attrs?.tabindex || 228;
},
get tabIndex() {
return attrs?.tabIndex || -1;
},
Only depends on order. ("tabIndex" has higher order)
37 replies
SSolidJS
Created by FF on 1/4/2024 in #support
Lowercase props
Ok.... but what if I have component that has default prop, for expamle "tabIndex". Should I care about both "tabIndex" and "tabindex" or only one of?
37 replies
SSolidJS
Created by FF on 11/24/2023 in #support
Behavior of "Portal" component
And if so, wouldn't it be a good idea to add an extra prop to the "Portal" component so that the user can control whether a wrapper is needed or not.
13 replies
SSolidJS
Created by FF on 11/24/2023 in #support
Behavior of "Portal" component
Thanks for the explanation! I think I found a solution for this problem, but it's not very efficient from a "solid-js" perspective (I think). Glad to be wrong if so. https://playground.solidjs.com/anonymous/fe29c6ef-8b4c-4656-ac41-c77249a37fdc
13 replies
SSolidJS
Created by FF on 11/24/2023 in #support
Behavior of "Portal" component
@core-team cc. As I understand that wrapper exists only for the sake of reactive scope, but in some situations is very annoying to have this extra div. Plus we have additional node.
13 replies