Files
static-front/store/hooks.ts
T
Hamed 4cd34106b0
Build & Deploy (develop) / build-and-deploy (push) Successful in 2m23s
refactor: migrate project to TypeScript and translate comments to English
2026-09-14 13:27:17 +02:00

8 lines
261 B
TypeScript

'use client';
import { useDispatch, useSelector } from 'react-redux';
import type { AppDispatch, RootState } from './store';
export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
export const useAppSelector = useSelector.withTypes<RootState>();