Closed jaichandra closed 6 years ago
The compile time error if fixed by passing data as an array like below:
new AddData<Foo>({ data: [data], schema: fooSchema })
But AddData
still doesn't populate the store. I tried SetData
as well, but no luck. I added a success action after AddData
as per the documentation and that success action is getting called executed. But in my reducer, state.normalized
is still null
. Please suggest.
I got it working. thanks.
Say, I have below schema
And my api call returns a single object.
when I do a
new AddData<Foo>({ data, fooSchema })
in my @Effect, I get below error.Is this a version problem? I am on @ngrx/store 5.0.0