mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
b460ced56a
commit
4e4bbb00ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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)`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue