musiclover
musiclover
SSolidJS
Created by musiclover on 8/18/2024 in #support
Getting value from store is not reactive.
No description
8 replies
SSolidJS
Created by musiclover on 8/4/2023 in #support
Array.includes is not reactive.
const [ activeKeys, setActiveKeys ] = createSignal<number[]> ([]) const isActive = (i: number) => activeKeys ().includes (i) I have this code. isActive () is not reative. What's problem?
4 replies
SSolidJS
Created by musiclover on 7/31/2023 in #support
Should I use <Show>?
<div> {isVisible && <div/>} {isVisible ? <div/> : <span/>} </div> Can't I just use conditional statement ? Is it same? or Should I use <Show> for performance?
8 replies
SSolidJS
Created by musiclover on 7/29/2023 in #support
How to use JSX.HTMLAttributes<HTMLDivElement>?
import type { Component, JSX } from 'solid-js' export const LeeCenter:Component<JSX.HTMLAttributes<HTMLDivElement>> = p => ( <div {...p} class={flex justify-center items-center ${p.class}} > {p.children} </div> ) I want to make kind of wrapper of div. Is this ok? it seems working.
4 replies
SSolidJS
Created by musiclover on 7/28/2023 in #support
How to use svg file as component??
4 replies
SSolidJS
Created by musiclover on 4/1/2023 in #support
Solid App to Web Component (js file)
I'm making a single page app in solid and Vite. Can I build my entire solid component to Web Component (single js file) ? I don't want to change each component to web component, i have a lot of components. Should I change each component to web component manually?
11 replies
SSolidJS
Created by musiclover on 3/14/2023 in #support
Can I use component as context value like this?
8 replies
SSolidJS
Created by musiclover on 3/14/2023 in #support
How to add child to parent component outside of parent?
No description
2 replies
SSolidJS
Created by musiclover on 3/4/2023 in #support
How to re-render <Portal> if target component is removed or added?
I want to use <Portal> with id to dynamically insert component to other component. The problem is the target component (mount) can be also dynamically removed or added. What should I do in this case? I found the <Portal> component is not rendered after re-adding target component after removing it.
3 replies
SSolidJS
Created by musiclover on 3/3/2023 in #support
Can I make getElementById reactive?
I want to use document.getElementById () as signal. Is it possible?
6 replies
SSolidJS
Created by musiclover on 3/3/2023 in #support
How to not render <Portal> if mount is undefined?
5 replies
SSolidJS
Created by musiclover on 2/11/2023 in #support
Accessing child element size from parent.
4 replies
SSolidJS
Created by musiclover on 1/1/2023 in #support
How to use IndexedDB in Solid?
I can't see solid-primitives. How to use it?
6 replies
SSolidJS
Created by musiclover on 12/31/2022 in #support
How to split codes in store to multiple files?
7 replies
SSolidJS
Created by musiclover on 12/31/2022 in #support
Creating custom signal.
11 replies
SSolidJS
Created by musiclover on 12/30/2022 in #support
Is solid-realworld example really real world?
I'm trying to follow the pattern solid-realworld uses. But the state management is really confusing me. Other made a same question like me. https://github.com/solidjs/solid-realworld/issues/20 It's even not typescript. Where can I see true real world example?
4 replies
SSolidJS
Created by musiclover on 12/30/2022 in #support
Will we see solid-native?
I really love Solid. I want to make iOS / Android / Desktop app using solid..
2 replies
SSolidJS
Created by musiclover on 12/30/2022 in #support
How to clear solid-primitives's storage?
2 replies
SSolidJS
Created by musiclover on 12/29/2022 in #support
SolidStart - Can't use 'os' module.
6 replies
SSolidJS
Created by musiclover on 12/28/2022 in #support
Please remove Portal's div wrapper...
I don't understand why <Portal> wrap my component in new div... Is there no way to remove it??
22 replies