0.1.0 • Published 11 months ago

solid-track v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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));
});
0.1.0

11 months ago