angular/packages/forms/signals/test/node
Miles Malerba fa13a167f1 refactor(forms): preserve logic order when apply is used on root path
In some cases the logic order was not preserved properly when using `apply`. In particular this occurs when some logic is registered on a child of the root, followed by an apply to the root, followed by further logic registered on a child. In this case the final registered logic wound up running before the applied logic.

This happened because `FieldPathNode` for a child path was caching its `LogicNodeBuilder` at creation time. This meant that if the parent's `LogicNodeBuilder` changed (e.g., due to an `apply` call), the child would still be using the old one.

This commit fixes the issue by dynamically resolving the `LogicNodeBuilder` for a child path whenever it is accessed.
2025-10-29 10:40:07 +01:00
..
api refactor(forms): preserve logic order when apply is used on root path 2025-10-29 10:40:07 +01:00
BUILD.bazel feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
dynamic.spec.ts feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
field_context.spec.ts feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
field_node.spec.ts refactor(forms): track arrays in a parent array by index 2025-10-28 20:52:51 +01:00
field_proxy.spec.ts refactor(forms): rename Field to FieldTree (#64214) 2025-10-03 07:59:31 -07:00
form.spec.ts feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
logic_node.spec.ts feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
path.spec.ts feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
recursive_logic.spec.ts refactor(forms): rename Field to FieldTree (#64214) 2025-10-03 07:59:31 -07:00
resource.spec.ts refactor(forms): add onError callback to validateHttp for HTTP errors 2025-10-27 17:12:25 +01:00
submit.spec.ts refactor(forms): add onError callback to validateHttp for HTTP errors 2025-10-27 17:12:25 +01:00
types.spec.ts feat(forms): add experimental signal-based forms (#63408) 2025-08-28 09:02:43 -07:00
validation_status.spec.ts refactor(forms): Allow returning plain values from validators 2025-10-28 20:50:45 +01:00