synapsecns/sanguine

View on GitHub
packages/widget/src/state/hooks.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'

import { AppDispatch, RootState } from './store'

export const useAppDispatch = () => useDispatch<AppDispatch>()
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector