refactor(core): Make wording of effect-allowSignalWrites deprecation warning more accurate (#58792)

The previous warning contained a typo and also somewhat implied that allowSignalWrites did something. However, setting allowSignalWrites to false has no impact at all in Angular 19.

Closes #58790

PR Close #58792
This commit is contained in:
Vincent 2024-11-21 13:18:28 +01:00 committed by Pawel Kozlowski
parent b460ced56a
commit 4e4bbb00ad

View file

@ -169,7 +169,7 @@ export function effect(
if (ngDevMode && options?.allowSignalWrites !== undefined) {
console.warn(
`The 'allowSignalWrites' flag is deprecated & longer required for effect() (writes are allowed by default)`,
`The 'allowSignalWrites' flag is deprecated and no longer impacts effect() (writes are always allowed)`,
);
}