作爲新ngrx我面臨的一個例外,不知道爲什麼...... 我想dispatch的action並在effect處理它,但我一直收到錯誤:TypeError: Actions must have a type property 操作: export const TEST_ACTION = 'test_action';
export class TryTest implements Action {
@effect()
public loadAccommodations$: Observable = this.actions$
.ofType(PAA.PROPERTY_LOAD_REQUEST)
// .debounce(300)
// introducing this mitigates the flood but does not resolve the
我有一個NGRX影響,在保存報告後保存報告我想重置表單並顯示報告已保存的通知。 下面是商店調度效果以保存報告並將其注入商店的示例。 保存並插入後,我想重置表單並向用戶顯示通知。 onSubmit(): void {
// Gather the fields from the form and
// dispatch the new report event which will