A SolidJS hook to track signals even in asynchronous contexts.
npm install solid-trackCall 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));
});