Skip to content

Force component to render before switching to it. #599

@xvalentino

Description

@xvalentino

Is there any way to render a scene/route before you switch to the route?

I am loading images and videos in a scene, and they take time to load. There is an unpleasant initial flicker when I move to these scenes. I'd like to force my component to update, THEN within the component I have an 'onLoadFinish' callback where I'd like to call Actions.foo().

Does anyone have any idea if this is capable now, or point me into the direction of where I could make a PR to make this possible?

I'm on 2.x but I'd upgrade if I had to.

Thank you!

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