We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de89335 commit 8f4cd39Copy full SHA for 8f4cd39
src/hooks/useStore.ts
@@ -1,7 +1,5 @@
1
import { useContext } from 'react'
2
-import { Action, AnyAction, Store } from 'redux'
3
import { ReactReduxContext } from '../components/Context'
4
-import type { FixTypeLater } from '../types'
5
import { useReduxContext as useDefaultReduxContext } from './useReduxContext'
6
7
/**
@@ -11,7 +9,7 @@ import { useReduxContext as useDefaultReduxContext } from './useReduxContext'
11
9
* @returns {Function} A `useStore` hook bound to the specified context.
12
10
*/
13
14
-export function createStoreHook<S = FixTypeLater, A extends Action = AnyAction>(context = ReactReduxContext) {
+export function createStoreHook(context = ReactReduxContext) {
15
const useReduxContext =
16
context === ReactReduxContext
17
? useDefaultReduxContext
0 commit comments