Skip to content

How to change component state on Scene event? #39

Description

@blazenko

Hi

is it possible to assign an event listener to a Scene?

Access to events is described here
#2
and here #34
by wrapping Scene's child in a function. This does "give access" to events, but I need to change component state on event, and for that I need to assign a listener, not call a handler directly; because since the wrapper function is inside render(), I can't call state change from there (a React no-no).

How can I accomplish component state change on, say, enter or leave event?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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