Dsaquel
Dsaquel
SSolidJS
Created by ojack on 4/18/2024 in #support
Dynamically remove effect
Maybe you should take a look at untrack to remove the effect of a signal or a derived signal: https://www.solidjs.com/tutorial/reactivity_untrack or you can use on to only watch the depencies in your first argument. https://docs.solidjs.com/reference/reactive-utilities/on
5 replies
SSolidJS
Created by sponge on 4/2/2024 in #support
Delegated custom events
If you need to attach an event listener to an element that is not supported by Solid's event delegation, such as a custom event in a custom element, you can use the on:__ form.
delegated events works only with solid's event delegation. Now for your custom event you need to type your own event: https://docs.solidjs.com/configuration/typescript#advanced-jsx-attributes-and-directives
7 replies