hajicj / rhythmify_frontend

0 stars 1 forks source link

Chant data not loaded during app initialization #26

Open hajicj opened 2 years ago

hajicj commented 2 years ago

Insufficient app initialization -- it is possible to access the dashboard before any chants have been loaded from the back-end. Currently, the call to ChantService.loadData() is only triggered by the data source selection component, which initializes its checked and unchecked checkboxes from local storage during its ngOnInit() and upon loading them from local storage, the SelectedDataSourceList emits an event that ChantService.loadData() is observing through combineLatest().

This means that if we were to change the default visibility of the data source selection component, this first load would not happen, and the app would not be initialized properly.