Skip to content

Race condition: onRegisterApi #1717

@smajl

Description

@smajl

E.g. http://ui-grid.info/docs/#/tutorial/308_external_filtering is not working because gridApi.core is not ready when onRegisterApi callback executes.

The example uses $interval to overcome this (like rly?), but you need to set the delay to 500ms or so to make it work.

Using $interval is madness, so does anyone have some proper solution or is it planned to sync onRegisterApi callback with other critical parts of the module? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions