Skip to content

Commit 6e4cbc8

Browse files
authored
Merge pull request #12 from k3env/patch-1
fix import from effector in last code sample
2 parents e20a07c + 02e1b3f commit 6e4cbc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/create-router-controls.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export const router = createHistoryRouter({
4949
Use it anywhere:
5050
```ts
5151
// @/pages/register
52-
import { sample } from 'effector';
53-
import { controls } from '@/shared/routing';
52+
import { sample, createEvent } from 'effector'
53+
import { controls } from '@/shared/routing'
5454

5555
export const cancelButtonPressed = createEvent();
5656

0 commit comments

Comments
 (0)