I've been trying out the experimental signal forms for my latest project and have been running into difficulties.
I am making an editable paginated Table controlled by signal forms. The model looks something like
tableModel: {
pages: Page[]
}
interface Page {
rows: Row[]
}
interface Row {
foo: string
bar: string
...
}
The initial model contains a single page[0], but a second page is loaded in the background and set into the model. Calling tableModel().value().pages[1] returns a valid Page object; the tree for the first page tableModel.pages[0] is also fine; but the tree for the second page tableModel.pages[1] is undefined.
I tried recreating just this bug in its own bug project but wasn't successful, so it's somehow tied to my app logic. But regardless, this is a bug in Angular, right? Shouldn't the form's Field Tree always have the same Fields as its Value? 😕