Skip to content

onChange not working on arrays with simple values #468

Open
@scotttrinh

Description

@scotttrinh

I have a bunch of form fields of various types, including fixed-size arrays (tuples). I have to send the changes to a separate service for syncing, and until now, I've just been sending the whole object with a scope watch. This has worked, but I'm trying to refactor to only send the changed values, rather than the whole object. I've come up with a generic onChange handler that will handle normal fields, and if I attach them manually to the form definition, it seems to work. The issue is with arrays. How/where do I attach these onChange handlers so that if it gets called for all of the array values? I would be content with a change handler on the array itself that just gave me the new value of the whole array, if that's simpler.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions