hel.io
hel.io
Explore posts from servers
SSolidJS
Created by 이한울 on 7/23/2023 in #support
How to add events for scrolling like React? (with solid-qurey)
solid-query has a createInfiniteQueries so you don't need to create this yourself.
2 replies
SSolidJS
Created by nirtamir2 on 4/12/2023 in #support
Solid.js event handler that depend on reactive value best practice (fix solid/reactivity lint rule)
Thank you very much for the explanation and I'm definitely going to read the docs 😄
10 replies
SSolidJS
Created by nirtamir2 on 4/12/2023 in #support
Solid.js event handler that depend on reactive value best practice (fix solid/reactivity lint rule)
Hi Josh, Im quite new to SolidJS, been mostly working with react. In react, because of its nature, we try to avoid passing a callback to a component like this <button onClick={() => props.onClick()}>My button</button> , I try to always do <button onClick={props.onClick}>My button</button> however, you are saying that, in SolidJS we should do as the first example? Is this because the nature of SolidJS where functions only run once? From what I understood is that as long as you dont destructure your props, you don't lose reactivity. I'm trying to understand why passing props.onClick would not be OK. Thanks
10 replies
SSolidJS
Created by nirtamir2 on 4/12/2023 in #support
Solid.js event handler that depend on reactive value best practice (fix solid/reactivity lint rule)
I've seen these too but I'm wondering if it's not an issue with eslint plugin solid. I don't see anything wrong to how you pass the onClick event handler to your component in your first button. I'd love, however, know if it's really just an issue with the eslint plugin or if there's a better way to do this.
10 replies
SSolidJS
Created by _calvinandhobbes on 4/12/2023 in #support
How to extend native events
This would probably be a good place for a Proxy https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy. I mean, not necessarily in the input itself but you could create a proxy for the currency and you can do whatever you need on set() and on get(), which is where you could provide your masked and unmasked values
2 replies
SSolidJS
Created by hel.io on 2/27/2023 in #support
How to create a generic Input when passing prop `class` to override styles?
Hi @maxoucsgo, Thank you very much for your reply. I didn't know about splitProps , this solved my problem.
5 replies
SSolidJS
Created by hel.io on 2/26/2023 in #support
How does reactivity works in createStore?
Hi @._rb, Thank you for the reply, it works 🙂
5 replies