Skip to content

Passing the state rather than the config inside events #222

Closed
@pauldijou

Description

@pauldijou

Hey there,

When triggering events like $stateChangeStart or $stateChangeSuccess, it's the config of the state which is passed as data on the event according to here or here.

Is there a reason to pass to.self rather than to (same for from)? It seems we are only loosing infos by doing that... We can't call methods like to.is(...) or to.includes(...) (or I didn't find a way to do that).

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions