Cant set signal from getting another signal typescript error
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
4 Replies
And what happens if i do this which compiles btw:
set_current(target)
set_current(() => target())
should work although i'm not sure what you are trying to achievethe inner function to immedately called right when I set this.
why can't i just do as i tried above.
still not sure to understand the end goal of update. it might help if you provided a more complete example as update is used nowhere
set_current(target)
should work as well