Skip to content

[1.0] dom-repeat observe non-array values #1683

Closed
@amannn

Description

According to the documentation, the observe option for dom-repeat can only react to properties changing on an object in the array that is consumed by the dom-repeat. It would be great if observe can also react to properties from the custom element the dom-repeat lies within.

Let's say I have a dom-repeat that lists employees, I want to use a filter function that reacts to an input field above, by which the employees can be filtered. Now as far as I understand there is no way to tell the dom-repeat to re-render when the data-bound property from the input field changes.

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