Closed frango9000 closed 1 year ago
effects
No
Effects are throwing an error when dispatched.
When following the Documentation example:
loadTodos$ = createEffect(actions => actions.pipe( ofType(loadTodos), switchMap((todo) => this.todosApi.loadTodos()) ));
https://stackblitz.com/edit/angular-mctwxe?file=src/main.ts
ERROR Error: Make sure to provide a valid action type or set the option {dispatch: false}
"@ngneat/effects": "2.1.0", "@ngneat/effects-ng": "3.0.0",
No response
Yes
Start a new pull request in StackBlitz Codeflow.
@EricPoul, Do we handle it in your last PR that we merged?
Nope, it's a bug. I see it. I'll make a pr to fix it
Which @ngneat/effects-* package(s) are the source of the bug?
effects
Is this a regression?
No
Description
Effects are throwing an error when dispatched.
When following the Documentation example:
loadTodos$ = createEffect(actions => actions.pipe( ofType(loadTodos), switchMap((todo) => this.todosApi.loadTodos()) ));
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-mctwxe?file=src/main.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
Anything else?
No response
Do you want to create a pull request?
Yes