Right now some Peanar components manage their own state of connectivity, while others rely on PeanarApp to see if we are connected. This has caused random logic be scattered across the codebase all doing the same thing in different ways.
The proposal is to add a ConnectivityState component that can be passed to other components, only to be mutated by Broker but subscribed to by any components that needs to know the connectivity state. More details to come later.
Right now some Peanar components manage their own state of connectivity, while others rely on PeanarApp to see if we are connected. This has caused random logic be scattered across the codebase all doing the same thing in different ways.
The proposal is to add a
ConnectivityStatecomponent that can be passed to other components, only to be mutated byBrokerbut subscribed to by any components that needs to know the connectivity state. More details to come later.