Solid JS force rerender on signal change
I need to force Solid JS to make changes to the DOM every time a signal changes. Currently it seems that it is batched, probably for performance reasons. I can get around this by wrapping my second signal change in a
Here is a code snippet that demonstrates the problem and the timeout fix. If you remove the
setTimeout, but I want to make sure I am not implementing a hacky solution. For example, could I reliably get away with using a requestAnimationFrame or is there some Solid JS provided function that I missed?Here is a code snippet that demonstrates the problem and the timeout fix. If you remove the
setTimeout, you will see no change.