Skip to content

onMount called before elements are connected in outin mode #34

@timothyallan

Description

@timothyallan

I have a 3rd party component that relies on a document.getElementById call to find a DOM node in my components onMount function.

Works great with the normal transition, until I switch to an outIn transition, then my components onMount fires, but the DOM node doesn't exist yet, so the 3rd party component blows up.

I don't know exactly how it would look, but it would be great if there was a way to detect if the onMount was actually mounted and the DOM was ready, or if the component is floating around outside of the DOM in the transitions pretend onMount.

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