The whole process is completely synchronous and can be handled by the reducers.Ngrx/effectsis not needed. 整个过程完全是同步的, 可以被 reducers 处理。 并不需要Ngrx/effects。 3. Fetching data for a component (为组件获取数据) Your component needs data from the store, but the data needs to be...
(2022-08-18) ### Bug Fixes * **component-store:** make synchronous updater errors catchable ([#3490](https://github.com/ngrx/platform/issues/3490)) ([1a906fd](https://github.com/ngrx/platform/commit/1a906fd)) * **component-store:** move isInitialized check to queueScheduler context ...
Managing selectedItem is completely synchronous in nature and so I could not justify creating a SelectedItemService for it. This is why I am using ItemsService when dealing with items but deal with the store directly when getting selectedItem state. You could create a service to handle this ...
Correct answer: If the state ofmediaPlayingis completely predicted by another part of the state tree, then it isn’t true state.It’s derived state. That belongs in a selector, not in the store. 正确答案: 如果mediaPlaying的状态完全由状态树中的另一部分决定, 那么它就不是真正的状态。它是...