setting signal inside createRenderEffect
say I have the following code
I assumed in the above example, first all the effects dependent of
but instead we get
initially it is executed directly as it is declared, as expected, but then afterwards the effects will only run after the current effect is completed.
I understand it's not ideal to set signals during effects, probably for these sort of things, but I wonder if there is an escape hatch.
playground: https://playground.solidjs.com/anonymous/d4a6e547-9bd0-4b63-9e72-f47b25a16b01
I assumed in the above example, first all the effects dependent of
other would be run, so it would log after clicking 2 timesbut instead we get
initially it is executed directly as it is declared, as expected, but then afterwards the effects will only run after the current effect is completed.
I understand it's not ideal to set signals during effects, probably for these sort of things, but I wonder if there is an escape hatch.
playground: https://playground.solidjs.com/anonymous/d4a6e547-9bd0-4b63-9e72-f47b25a16b01
Quickly discover what the solid compiler will generate from your JSX template
