solid-track
v0.1.0
Published
A SolidJS hook to track signals even in asynchronous contexts.
Downloads
106
Maintainers
Readme
solid-track
A SolidJS hook to track signals even in asynchronous contexts.
Installation
npm install solid-track
Usage
Call useTrack
synchronously inside the reactive context to create a function to read and track signals.
createEffect(async () => {
const ref = useTrack();
await asyncFunction();
console.log(ref(signalA) + ref(signalB));
});