Dakotys
Dakotys
SSolidJS
Created by Dakotys on 8/10/2024 in #support
JSX onWheel not being called.
onWheel isn't called unless I explicitly attach event listener on the element: https://playground.solidjs.com/anonymous/f33af3c6-8637-47be-85da-7c6f8c5e8e73 When onMount is uncommented both listeners get triggered.
5 replies
SSolidJS
Created by Dakotys on 4/28/2024 in #support
What's the correct way to make store persistent?
I am making some sort of widget manager and i have no control over how many options/ styles will the widget have so the store can reach size of around 30KB and more. I am making the store persistent using solid-primitive but I am not sure if it is right approach since there is no option for debouncing and for example when i am dragging the widget, the store updates => the widget's jsx updates, but the whole store is stored in localstorage without debounce. I am not sure if i should make separate store for each widget and also add createEffect that would somehow debounce the change to main store or maybe make them each a separate persistent stores? Or is the store not that big and I don't have to worry about it?
1 replies
SSolidJS
Created by Dakotys on 2/29/2024 in #support
Why is it considered wrong to destruct props?
Why is it considered wrong to destruct props (https://docs.solidjs.com/concepts/components/props#:~:text=of%20the%20property.-,destructuring%20props,-Props%20are%20read), even thought the reactivity can be retained by just not calling the signal immediately when passing it and just passing reference and calling it only by last children or wrapping it in Accessor and modifying it as it would be needed. And why is there no standard for naming signals like const [_name, setName] = createSignal("Jakob"); or const [$name, setName] = createSignal("Jakob"); so it would be easier to distinguish that it is signal and that it needs to be called.
28 replies
SSolidJS
Created by Dakotys on 2/18/2024 in #support
Is there a way to get Server Reference inside SolidStart? or other way to use webSockets
I just want to know if there is way to get to server reference that would be usable inside Socket.io. Or if there is other way to use WebSockets. Server reference used to be inside FetchEvent : https://github.com/solidjs/solid-start/issues/1017, https://github.com/solidjs/solid-start/pull/1018. Inside event object are now: [ 'request', 'response', 'clientAddress', 'locals', 'nativeEvent' ]. This is example utilizing it in older version of SolidStart: https://github.com/Mirza-Glitch/solid-start-socket.io.
1 replies