react-alien-signals
    Preparing search index...

    Function createSignalScope

    • Creates an effect scope that groups multiple reactive effects for lifecycle management.

      Parameters

      • callback: () => void

        A function where effects can be created. All effects created within will be scoped.

      Returns () => void

      A stop function to cancel all effects within the scope.

      const stopScope = createSignalScope(() => {
      createEffect(() => {
      console.log('Scoped effect');
      });
      });

      // Later, stop all scoped effects:
      stopScope();