From 4e8d529d9335310627e6b274772c3542883b46c6 Mon Sep 17 00:00:00 2001 From: Rainer Hahnekamp Date: Tue, 19 Nov 2024 17:09:39 +0100 Subject: [PATCH] docs(signals): add info about throwing error on state mutation in dev mode (#4595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marko Stanimirović --- projects/ngrx.io/content/guide/signals/signal-state.md | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/ngrx.io/content/guide/signals/signal-state.md b/projects/ngrx.io/content/guide/signals/signal-state.md index 15310c3790..cbbaf934c9 100644 --- a/projects/ngrx.io/content/guide/signals/signal-state.md +++ b/projects/ngrx.io/content/guide/signals/signal-state.md @@ -87,6 +87,7 @@ patchState(
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.