Skip to content

The triggerPrePopulate binding results in too many requests during load #296

@chrisala

Description

@chrisala

Currently the triggerPrePopulate binding will allow the data loader to retrieve the prepop data during form initialisation but then ignore it if the binding is configured to ignore updates during initialisation.
This was done to register dependencies/subscribers on any observables accessed during the prepop call (e.g. expression variables) but has resulted in a situation where MERIT reports with large number of data sets fires up to 100s of calls during form initialisation which puts unnecessary load on the server.

Changing the binding to only subscribe to changes to the field the binding is attached to will allow the call to abort during initialisation before the data loader call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions