Skip to content

Commit

Permalink
docs: import createAction in side-effects.mdx (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
aantusahaa committed Nov 17, 2023
1 parent eaa5aee commit afbe3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/side-effects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ We can register `effects` that'll execute when we dispatch actions using [`@ngne

```ts title="todos.effects.ts"

import { createEffect, ofType } from '@ngneat/effects';
import { createAction, createEffect, ofType } from '@ngneat/effects';

const loadTodos = createAction('[Todos] Load');

Expand Down Expand Up @@ -119,4 +119,4 @@ function SearchComponent() {
}
```

In the [official](https://github.com/ngneat/effects#effect-functions) documentation, you can find more information and an Angular example. It's possible to use effects and effect functions simultaneously if you like.
In the [official](https://github.com/ngneat/effects#effect-functions) documentation, you can find more information and an Angular example. It's possible to use effects and effect functions simultaneously if you like.

0 comments on commit afbe3a8

Please sign in to comment.