Dsaquel
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/on5 replies
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