Closed ArielGueta closed 4 years ago
I'm creating action and use it with isActionOf according to the docs:
isActionOf
import { isActionOf, action } from 'typesafe-actions'; export const ACTION = (id) => action('Name', { id }); actions$.pipe( filter(isActionOf(ACTION)), )
But I get an error:
Argument contains array with invalid element at index 0, it should be an action-creator instance from "typesafe-actions"
What am I missing?
Thanks.
"typescript": "~3.9.3"
Care to share how you fixed it/why you closed the issue?
I changed it to:
export const ACTION = (id) => createAction('Name', ({ id }) => ({ id }))();
I'm creating action and use it with
isActionOf
according to the docs:But I get an error:
What am I missing?
Thanks.
"typescript": "~3.9.3"