Skip to content

link-to doesn't update the href on promised models #17060

Open
@iglosiggio

Description

@iglosiggio

If the model given to a {{link-to}} helper is a promise (eg. DS.PromiseObject) the helper doesn't update the href once the Promise is fullfiled (which might change the result of the serialize() hook of the desired Route).

example

  1. The link is not on a loading state and shows an incorrect url
  2. If the promise resolves the href is not updated

Once the link is clicked the new url is the correct one and the rerender of the components puts the correct value on the href of the link.

Is this the expected outcome?

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions