We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502e9a5 commit 9a02b4cCopy full SHA for 9a02b4c
src/components/Context.ts
@@ -26,7 +26,10 @@ const gT: {
26
function getContext(): Context<ReactReduxContextValue> {
27
if (!React.createContext) return {} as any
28
29
- const contextMap = (gT[ContextKey] ??= new Map())
+ const contextMap = (gT[ContextKey] ??= new Map<
30
+ typeof React.createContext,
31
+ Context<ReactReduxContextValue>
32
+ >())
33
let realContext = contextMap.get(React.createContext)
34
if (!realContext) {
35
realContext = React.createContext<ReactReduxContextValue>(null as any)
0 commit comments