You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR RuntimeError: NG0600: Writing to signals is not allowed in a `computed`.
at ClienteListarComponent_Conditional_27_Defer_0_td_11_Template (listar.component.html:90:41)
It seems commit #1467 broke the pipe, Idk the specifics or how angular works internally, but I assume angular is treating 'transform' as a computed signal, and writing to signals inside it is disallowed. Don't know how I would keep this as a signal without breaking it, could we revert this in the mean time?
also, according to this issue: angular/angular#56401, there isn't a benefit to using signals inside pure pipes, as they won't be re-evaluated.
As a temporary fix, i'm using the service to apply the mask in the TS file.
🐞 bug report
Is this a regression?
Yes, the previous version that I had installed in which this bug was not present was: "ngx-mask": "^18.0.0",Description
When using the ||(OR) operator this error is thrown and noting is displayed.
phone: string = '9999999999'
{{ phone | mask: '(00) 0000-0000||(00) 0.0000-0000' }}
A single mask work fine, as expected.
{{ phone | mask: '(00) 0000-0000' }}
🔥 Exception or Error
🌍 Your Environment
"ngx-mask": "^19.0.6"
Angular Version:
The text was updated successfully, but these errors were encountered: