Skip to content

Ember.computed.defaultTo behaves in an unexpected way #5462

@simonexmachina

Description

@simonexmachina

Ember.computed.defaultTo defaults to the value of the other property only once, and doesn't update when the other property changes. This seems very unexpected to me. Maybe we could add the ability to indicate that the default should update when the other property changes eg. defautlTo(defaultPath, bound).

Here's a JSBin that shows the unexpected behaviour.

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