enteleform
enteleform
Explore posts from servers
SSolidJS
Created by enteleform on 6/16/2024 in #support
Broken reactivity @ `vite-plugin-solid` with `{dev:false}`, but works fine with `{dev:true}`.
Context - I'm using render from solid-js/web to render content for an Obsidian extension. - Reactivity is breaking for the Icon component from @iconify-icon/solid, but the issue is not present when {dev:true} is set in vite-plugin-solid. - I tried troubleshooting this in a minimal StackBlitz Project, but was not able to reproduce the issue.
39 replies
CC#
Created by enteleform on 12/31/2022 in #help
❔ Is there an equivalent feature to TypeScript's Indexed Access Types?
e.g.
type Example<T> = {
items: T[]
}

type StringItems = Example<string>["items"]
// string[]

function getStringItem(stringItems:StringItems){
// ...
}
type Example<T> = {
items: T[]
}

type StringItems = Example<string>["items"]
// string[]

function getStringItem(stringItems:StringItems){
// ...
}
7 replies