digital-fuesim-manv icon indicating copy to clipboard operation
digital-fuesim-manv copied to clipboard

Refactor to use StoreService instead of Store

Open Dassderdie opened this issue 1 year ago • 0 comments

  • There is now a StoreService that wraps the ngrx-store
  • This improves the readability and especially discoverability of synchronous access to the store (storeService.select(selector) instead of getStateSnapshot(selector, store))
  • It is now possible to add comments to the store functions (like that we usually don't dispatch actions but propose them via the exerciseService)
  • Previously, one always had to import Store<AppState> to get the typings - now StoreService is enough
  • Makes it easier to replace ngrx should the need arise as we only use a very small feature set of it

Nearly all of the changes are just straightforward renaming.

Dassderdie avatar Feb 18 '23 18:02 Dassderdie