Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

Issues with current Route definitions #48

Description

@chriskrycho

Using the latest, I bumped into the following issues:

  • beforeModel and afterModel (a) should be generic and (b) are overly strict. Should probably be something like this:

    beforeModel<T>(transition: Transition): Rsvp.Promise<T>;
    beforeModel(transition: Transition): void;
  • Similarly, model should probably be something like

    model<T>(params: {}, transition: Transition): T | Rsvp.Promise<T>;
    model(params: {}, transition: Transition): void;

I also ran into issues with the ActionsHash bits combined with the user of Route.extend(SomeMixin), but I strongly suspect the mixin pattern is to blame there, rather than the Route definition.

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