我是新来的。敬NgRx。
当我尝试使用createReducer()创建reducer时,当我试图将第三个和第四个参数作为null传递时,我得到了错误Expected 4 arguments, but got 2.,我得到了错误
Argument of type '(state: any, { updatedValue }: any) => any' is not assignable to parameter of type 'readonly ActionCreator<string, FunctionWithParametersType<any[
我有这个简单的代码,我只想在模块中添加一个reducer。
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import {Action} from '@ngrx/store';
import { Component } from '@angular/core';
class
导入以启用调试器 for chrome tools将结果转到下面的错误:
错误TypeError:无法读取未定义at isFiltered的属性“白名单”(:1:5016),该属性位于DevtoolsExtension.notify的Object.x (存储-devtools.js:210)上,位于DevtoolsExtension.notify的 at ScanSubscriber._tryNext (scan.js:61) at ScanSubscriber._next (scan.js:54) at ScanSubscriber.Subscriber.next (Subscriber
嘿,伙计们,我正在尝试实现一个在接口中有另一个实体的实体。对不起,我的英语不好。我正在尝试更新子实体,但它不起作用。我不知道代码是不是有问题,或者这是不是一种合适的方式。 在NgRx中做嵌套状态好吗?对不起,我的英语不好。我在使用NgRx和angular方面还是个初学者 ? // in here im passing the id of parent and the data i want to update in nested child data
export const TestUpdate = createAction(
'[testtttt] Load Work
我正在使用来自@ngrx/store的@ngrx/store来从我的商店中选择一个对象数组。
我的应用程序编译,但是我得到了错误。
Argument of type 'MemoizedSelector<ICommonAppState, IMenuItemsObject[]>' is not assignable to parameter of type 'string'.
navigation.selectors.ts
import { createSelector } from '@ngrx/store';
import { RED
我已经在angular (版本5.2.9)应用程序中使用ngrx/store (版本5.2.0)和typescript版本(2.5.3)实现了状态管理。
当我尝试选择商店并订阅时,我遇到了问题。
error TS2345: Argument of type '"appStateData"' is not assignable to parameter of type '"appState"'.
app.module.ts
import { StoreModule } from '@ngrx/store';
impo
我目前的项目是使用角/ngrx 7,我计划升级到最新的版本8。
我的项目是一个带有演示应用程序的角库,它是角域的典型样式。
为了升级我的项目,我在网上发布了一些关于相关主题的帖子:
升级角
ng update @angular/cli @angular/core --force
这一步我必须添加--force参数来强制升级。
升级Ngrx
ng update @ngrx/store
在这个步骤中,我得到了许多类似于下面的警告消息:
NgRx 8 Migration: Unable to run the schematics to rename \`META_REDUCERS\` to \`US