Skip to content

Dynamic (sync) resolvable added in onEnter hook not available in onSuccess #3544

Closed
@adamreisnz

Description

@adamreisnz

This is a:

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: 1.x

Bug Report

Current Behavior:

http://plnkr.co/edit/u0JKQCIabRCixHJLmBbB?p=preview

See console log. The app errors with:

Error: Resolvable async .get() not complete:"bar"

Expected Behavior:

For bar to be available in the onSuccess hook, just like foo, because it's not async and there is no reason why it should not be available/complete.

Expected behaviour is for it to work, just as it works in the onBefore hook.

(FYI the reason I need it in the onEnter hook is because I'm relying on another global resolvable to create the new resolvable, which is only available in the onEnter hook.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions