Wes
Wes
Explore posts from servers
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
the people behind voidzero are not the same, so there's some hope
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
Biome's previous incarnation
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
it also crashed a lot, which I'm sure is better nowadays
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
I'm excited for voidzero, last time I tried Rome it was a bunch of petty rules, and it drove me insane
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
Anyway... thanks 😛
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
I didn't reinstall anything so it must be some sort of cache shenanigans
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
so like, a vite cache issue maybe?
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
I thought we were done with nuking node modules 😦
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
what the heck, that worked?!
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
no, and running tsc --noEmit shows the same errors
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
Yeah
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
Do you mean "jsxImportSource": "solid-js",?
58 replies
SSolidJS
Created by Wes on 11/16/2024 in #support
All of a sudden `classList` is typed as string | undefined
HTML:
<section
classList={{
<section
classList={{
58 replies
SSolidJS
Created by Wes on 2/28/2024 in #support
How to create a nested menu from a nested object?
I ended up cheating and wrapping the menu on a Show with keyed, where the menu data is memoized. For sure that's not the best performance possible, but I'm ok with extra rendering for this given the data dont change often.
12 replies
SSolidJS
Created by Wes on 2/28/2024 in #support
How to create a nested menu from a nested object?
The Rerun looks rather tempting
12 replies
SSolidJS
Created by Wes on 2/28/2024 in #support
How to create a nested menu from a nested object?
I see, so either I or the store is responsible for say understanding that an array size changed and call that signal setter, but if one of that array's object changed, the object's property is also a signal and should be updated instead
12 replies
SSolidJS
Created by Wes on 2/28/2024 in #support
How to create a nested menu from a nested object?
But everything can change, including the arrays
12 replies
SSolidJS
Created by Wes on 2/8/2024 in #support
How to better handle `from`'s possible `undefined` state?
How so?
8 replies
SSolidJS
Created by Wes on 2/8/2024 in #support
How to better handle `from`'s possible `undefined` state?
I ended up writing a util
export function fromWithDefault<T>(
observer: (update: (newValue: T) => void) => () => void,
initialValue: T
) {
const observedValue = from<T>(observer);
return createMemo(() => observedValue() ?? initialValue);
}
export function fromWithDefault<T>(
observer: (update: (newValue: T) => void) => () => void,
initialValue: T
) {
const observedValue = from<T>(observer);
return createMemo(() => observedValue() ?? initialValue);
}
8 replies