How to get store value from another store? https://svelte.dev/repl/0ab80c2fb8e045958d844bd4b11c04a9?version=3.22.1
In the example I include a variable inputVal
in stores.js
file and changing in
set: (val) => {inputVal=val; set( val );}, and use in fn setToZero
Question: how to do it directly without using the inputVal
variable?