Skip to content

Commit

Permalink
docs(state): fix link to immer (ngxs#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
do-nat authored Dec 14, 2021
1 parent 1e7127b commit 6bd0acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ feedZebra(ctx: StateContext<ZooStateModel>, action: FeedZebra) {
```

Here the `produce` function from the `immer` library is called with just a single parameter
so that it returns its [curried form](https://github.com/mweststrate/immer#currying)
so that it returns its [curried form](https://immerjs.github.io/immer/curried-produce)
that will take a value and return a new value with all the expressed changes applied.

This approach can also allow for the creation of well named helper functions that can be shared
Expand Down

0 comments on commit 6bd0acb

Please sign in to comment.