webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
26 stars 3 forks source link

Feature/storeception #93

Closed quarkus closed 1 year ago

quarkus commented 1 year ago

This creates tha ability to watch stores in stores.

For instance we could have a filterStore within a dataStore.

datasStore watches changes to filterStore and reloads filtered data.

dataStore is provided to a List UI filterStore is provided to the filter UI

doing so we have better control which components are updating by splitting large logic heavy stores into mulitple smaller ones while maintaining reactivity.