MathiasKandelborg/TRUE-framework

View on GitHub
util/tsEasyPeasyHooks.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createTypedHooks } from 'easy-peasy'
import IStoreModel from 'state/StoreModel'

const typedHooks = createTypedHooks<IStoreModel>()

export const { useStoreActions, useStoreDispatch, useStoreState } = typedHooks