Skip to content

Possible new lifecycle hook  #9

@filipbech

Description

@filipbech

Should we add a lifecycle hook for when properties have data - before the first render, so we can do some stuff.

If I want to set a property based on another property, I have to do some not-so-nice settimeout-0 stuff to make it work...

I put it in my demo to show the usecase:
https://github.com/filipbech/lit-element-example/blob/master/demo.js#L69-L71

What do you think? wouldn't this be a nice handle, or am I missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions