Skip to content

Refactor initialization handling and use of service dependencies

Daniel Gerhardt requested to merge refac-util-service-initializations into master

This MR refactors initialization handling and use of service dependencies for the global storage, consent and language services.

The coupling between the global storage service and consent service caused issues during initialization because of initialization order and dependency cycle.

Instead of the storage service depending on the consent service and initializing the consent service with its data the dependencies have been inverted.

Furthermore, translation logic have been moved from the header component to the language service. The initialization is now triggered by the app component. This fixes issues where the translation is needed early during initialization (e.g. for tracking).

Edited by Daniel Gerhardt

Merge request reports