JonathanExcelsior
JonathanExcelsior
Explore posts from servers
SSolidJS
Created by JonathanExcelsior on 7/11/2024 in #support
Signals in global scope vs component scope.
Is there a preferred way or best practice in handling state for components? Should we try to keep components pure? In one of my applications, I have signals declared outside of components, making them global. Is there an disadvantage to doing this or should I aim to pass the signals as props? https://www.solidjs.com/tutorial/stores_nocontext
3 replies
SSolidJS
Created by JonathanExcelsior on 7/13/2023 in #support
Can you use the reactive object from useSearchParams as a source signal for createResource?
I've used the property of the reactive object returned from useSearchParams as a source signal for createResource, however, it's currently not working. It does not trigger the fetcher function. However, the property of the searchParams object is updated and I see this reflected in the UI.
5 replies
SSolidJS
Created by JonathanExcelsior on 3/16/2023 in #support
Is Static Site Generation possible with SolidJS?
I want to know if it's possible to implement ssg with SolidJS without SolidStart? Any libraries etc.? Thanks
2 replies
SSolidJS
Created by JonathanExcelsior on 12/23/2022 in #support
Rendering issue
When trying to render the same JSX stored in state to the screen twice at the same time. It only renders one of the JSX elements. The JSX is passed as props to the component and is stored in an accessor function returned from the createReducer primitive. I am doing something wrong?
10 replies
SSolidJS
Created by JonathanExcelsior on 12/22/2022 in #support
Is there a preference as when to use props or import data types?
With SolidJS you can export/import createSignal's getter and setter functions between files. How does this compare to passing the getter and setter as props? Thanks
2 replies
SSolidJS
Created by JonathanExcelsior on 12/21/2022 in #support
useReducer equivalent?
Is there a useReducer equivalent? Thanks
2 replies
SSolidJS
Created by JonathanExcelsior on 12/21/2022 in #support
emmet support
Is there emmet support for SolidJS? Currently when I use it and want a class on my JSX element it will auto-complete with "className" instead of "class". Is there a setting I can change? Thanks
3 replies
SSolidJS
Created by JonathanExcelsior on 12/4/2022 in #support
Github pages
Does anyone know if a SolidJS app will work with GitHub pages?
2 replies
SSolidJS
Created by JonathanExcelsior on 12/3/2022 in #support
Props
I read on the getting started tutorial that it's best practice not to destructure props object in the function assignment of a component as this will make the properties less reactive. I was wandering if it was ok to destructure the props object in the function body itself?
4 replies