Closed ryecroft closed 1 year ago
Closed this issue because I think there's something weird with my setup. I now cannot reproduce it =\
Closed this issue because I think there's something weird with my setup. I now cannot reproduce it =\
Probably! Me and @keithamus looked at this and couldn't reproduce either. We added a test to validate in https://github.com/github/catalyst/commit/a874af99cf3c0bd0321bef4ea6b500a3b7a11963. Feel free to re-open with more info if you get it.
Thanks for the bug report, hopefully you get this sorted in your app!
I'm confused by the behaviour of properties managed by the
@attr
decorator during click listener callbacks. Setting one of these properties during theconnectedCallback()
is immediately reflected when calling the getter for it, but this is not the case in click listeners.Here's my component definition:
the html is like this:
I see here that the injected setter for the
@attr
decorator is async, and that it's notawait
ed hereRemoving that
async
and theawait Promise.resolve()
here makes this unexpected behaviour go away (but breaks a load of other stuff in a real project).Is this behaviour expected? Thanks