Skip to content

statebuilder@0.5.0

Compare
Choose a tag to compare
@riccardoperra riccardoperra released this 22 Oct 18:11
· 4 commits to main since this release

Minor Changes

  • 8d627ba: feat: allow to inject states inside builders

    Since this version, you can inject other states into plugins (.extend).

    const AppState = defineSignal(() => ({}));
    
    const CounterState = defineSignal(() => 1).extend((_, context) => {
      const appState = context.inject(AppState);
    });