Open AStaroverov opened 3 years ago
Yeah it is, just use let
You're free to create signals inside effects (or effects inside effects) and this can sometimes be useful. In this particular example though, like @yamiteru said, you can use a regular variable instead of a signal.
I have a question. It's a bad idea for S to create something like a local state for effects (hooks?)? For example