Skip to content

Commit

Permalink
docs(signals): add info about throwing error on state mutation in dev…
Browse files Browse the repository at this point in the history
… mode (#4595)

Co-authored-by: Marko Stanimirović <markostanimirovic95@gmail.com>
  • Loading branch information
rainerhahnekamp and markostanimirovic authored Nov 19, 2024
1 parent 7a84209 commit 4e8d529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngrx.io/content/guide/signals/signal-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ patchState(
<div class="alert is-critical">

Updaters passed to the `patchState` function must perform state updates in an immutable manner.
If a mutable change occurs to the state object, an error will be thrown in development mode.

</div>

Expand Down

0 comments on commit 4e8d529

Please sign in to comment.