Skip to content

Ember optional feature default-async-observers creates a race condition #64

@sethbrasile

Description

@sethbrasile

Ember optional feature default-async-observers creates a race condition which will interfere with connections being available when you need them. This manifests as something like Cannot read properties of null (reading 'pan') or Cannot read properties of null (reading 'gain').

We need to remove the observer that triggers the _wireConnections method in order to resolve this. I tried a computed property in the past, but I didn't have enough control over when the computed property recalculated, so I stayed with an observer.

I have some ideas on how to resolve, but this will probably not happen until I move this library to JS classes and remove the "classic classes."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions