mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
import { useDispatch } from 'react-redux';
|
|
import type { AppDispatch } from './createStore';
|
|
|
|
export function getAppDispatch() {
|
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
const dispatch = useDispatch<AppDispatch>();
|
|
return dispatch;
|
|
}
|