Skip to content

Commit

Permalink
Create curvy-chicken-drum.md
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra authored Oct 22, 2023
1 parent 0b35308 commit 8d627ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .changeset/curvy-chicken-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"statebuilder": minor
---

feat: allow to inject states inside builders

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

```ts
const AppState = defineSignal(() => ({})

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

0 comments on commit 8d627ba

Please sign in to comment.