Skip to content

Repository files navigation

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

About

A SolidJS hook to track signals even in asynchronous contexts.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages