A utility function to get the current value from a given store. It works by subscribing to a store, capturing the value (synchronously) and unsubscribing just after.
a store from which the current value is retrieved.
const myStore = writable(1);console.log(get(myStore)); // logs 1 Copy
const myStore = writable(1);console.log(get(myStore)); // logs 1
Generated using TypeDoc
A utility function to get the current value from a given store. It works by subscribing to a store, capturing the value (synchronously) and unsubscribing just after.