Skip to content

Commit 4e8d529

Browse files
docs(signals): add info about throwing error on state mutation in dev mode (#4595)
Co-authored-by: Marko Stanimirović <markostanimirovic95@gmail.com>
1 parent 7a84209 commit 4e8d529

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

projects/ngrx.io/content/guide/signals/signal-state.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ patchState(
8787
<div class="alert is-critical">
8888

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

9192
</div>
9293

0 commit comments

Comments
 (0)