We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4a563 commit bb4b09fCopy full SHA for bb4b09f
packages/example-app/src/app/animals/api/reducer.ts
@@ -32,7 +32,10 @@ export function createAnimalAPIReducer(animalType: AnimalType) {
32
case AnimalAPIActions.LOAD_SUCCEEDED:
33
return {
34
...state,
35
- items: indexBy<Animal>(prop('id'), action.payload!),
+ items: indexBy<Animal, { [key: string]: Animal }>(
36
+ prop('id'),
37
+ action.payload!,
38
+ ),
39
loading: false,
40
error: null,
41
};
0 commit comments