simona icon indicating copy to clipboard operation
simona copied to clipboard

Simplify initialization of PrimaryServiceWorker

Open sebastian-peter opened this issue 3 years ago • 0 comments

PrimaryServiceProxy#toInitData unpacks source-related primary config and re-packages it into an InitPrimaryServiceStateData, which is then unpacked in PrimaryServiceWorker#init again. This seems a bit unnecessary.

One could take WeatherSource#apply as an example, where configs are turned into WeatherSourceWrappers directly.

This becomes more relevant once #34 is implemented.

sebastian-peter avatar Dec 14 '21 13:12 sebastian-peter