Skip to content

Binder: Throw an error on signal value() called without effect #23364

@tltv

Description

@tltv

For cases where a field component is not available, including binder-level validators, we should instead run the callback with a custom signal dependency tracker that throws an error if any signal value is read to make the developer aware that there's unexpectedly no effect in that particular case. Support for the cases without a field component would require handling all validation status changes as computed signals instead of as effects. Refactoring Binder to work in that way is outside the scope of this ticket.

(Parent ticket describes full context.)

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions