File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
en/docusaurus-plugin-content-docs/current/guides/examples
ru/docusaurus-plugin-content-docs/current/guides/examples Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ declare type AppDispatch = typeof store.dispatch;
364
364
``` ts title="shared/store/index.ts"
365
365
import { useDispatch , useSelector , type TypedUseSelectorHook } from " react-redux" ;
366
366
367
- export const useAppDispatch = () => useDispatch <AppDispatch >();
367
+ export const useAppDispatch = useDispatch . withTypes <AppDispatch >()
368
368
export const useAppSelector: TypedUseSelectorHook <RootState > = useSelector ;
369
369
```
370
370
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ declare type AppDispatch = typeof store.dispatch;
366
366
``` ts title="shared/store/index.ts"
367
367
import { useDispatch , useSelector , type TypedUseSelectorHook } from " react-redux" ;
368
368
369
- export const useAppDispatch = () => useDispatch <AppDispatch >();
369
+ export const useAppDispatch = useDispatch . withTypes <AppDispatch >()
370
370
export const useAppSelector: TypedUseSelectorHook <RootState > = useSelector ;
371
371
```
372
372
You can’t perform that action at this time.
0 commit comments