Skip to content

action-decorators: TypeError: Cannot redefine property: willTransition #6

@Turbo87

Description

@Turbo87

After applying the action-decorators codemod and running our test suite I'm seeing the following error:

TypeError: Cannot redefine property: willTransition

It seems that these sorts of actions on Route instances are not supposed to be used with the action decorator.

I would propose to blacklist all the events from https://api.emberjs.com/ember/3.13/classes/Route/events and not convert those to actions using action().

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