Files
factorio-clusterio/packages/lib
Hornwitser 8c17adf15b Refactor EventSubscriber to track its resource
Process updates of the resource EventSubscriber are subscribed to and
have it keep a mapping of id to value syncronised with event provider as
long as there are subscription callbacks registered with it.  The
mapping is kept around after the last callback is unsubscribed so that
it can be efficiently resynced with the resource based on the updatedAt
timestaps of individual elements.

This allows the EventSubscriber to provide the right building blocks to
provide its values to React components via the the useSyncExternalStore
hook.  This in turn greatly simplifies the web_ui models for the
subscribed resources.
2023-12-12 23:40:29 +01:00
..
2023-12-03 19:59:14 +01:00
2023-02-22 15:30:51 +01:00
2023-11-25 18:19:15 +01:00

Common Library for Clusterio

This package contains functionality shared between controller, host, ctl and/or plugins of Clusterio.

See the Clusterio repository for more information on Clusterio.