You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
humanchimp
changed the title
bug: the appInstance variable is shared over all the instances of the web component
bug: the appInstance variable is shared by all the instances of the web component
Jul 13, 2023
Hello. The
appInstance
variable is shared by all the instances of the web component in a manner that is subject to race conditions. i recommend storing it as an instance property on the class instead. This bug exhibits when multiple instances will contend for that variable, and then they'll end up dispatching, saywebComponentAttributeChanged
, to the wrong instance. I hope someone finds this insight helpful! Sorry I didn't have time to make a PR. Thanks!The text was updated successfully, but these errors were encountered: