bokuno_disk_cord
Index block does not notice change in a store
i thought, it already is. its in the tutorial afterall.
https://www.solidjs.com/docs/latest/api#createmutable
12 replies
Index block does not notice change in a store
tobe clear, with my original code,
Index
does notice on item removed and added to the list. but not an individual item.
produce
does exactly what i need. but IDK why it's necessary.
there is also createMutable
and modifyMutable
which remove the need for produce
. i guess, i'll use them instead.12 replies
can i propagate event to child?
the item inside the
li
could be anything, from simple text to svg icon. each item may have different action.
my current approach is to accept a callback that look like this.
the action dispatch/routing would be handled by the parent component.26 replies
can i propagate event to child?
So I have a list component (
ul
) what accept JSX.ArrayComponent
as children.
i want to be able to put anything to it as list item, like anchor element a
or anything with onClick
event attached to it.
the problem is that the item container (li
) is bigger than its child component. i want to be able to click on the container (not exactly at the text) and run an action.26 replies