floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

689
active users

@alcinnz I do something similar, relying solely on custom events to broadcast changes that other components might need to sync to. Each event has three bits in its payload:
* the new value
* the Group ID of the elements that the event is intended for
* the ID of the broadcaster, so it can ignore what it itself said

I find it works like a charm, as I use web components sparingly in HTML templates.

@alcinnz Good article. Hopefully we'll see more adoption of web components; native JS support for signals (github.com/tc39/proposal-signa) could help with that.