Skip to content

Commit f1a4dbc

Browse files
committed
Removed PropTypes
1 parent 6a617e2 commit f1a4dbc

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/components/Provider.tsx

-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { Context, ReactNode, useMemo } from 'react'
2-
import PropTypes from 'prop-types'
32
import { ReactReduxContext, ReactReduxContextValue } from './Context'
43
import Subscription from '../utils/Subscription'
54
import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect'
@@ -50,16 +49,4 @@ function Provider({ store, context, children }: ProviderProps) {
5049
return <Context.Provider value={contextValue}>{children}</Context.Provider>
5150
}
5251

53-
if (process.env.NODE_ENV !== 'production') {
54-
Provider.propTypes = {
55-
store: PropTypes.shape({
56-
subscribe: PropTypes.func.isRequired,
57-
dispatch: PropTypes.func.isRequired,
58-
getState: PropTypes.func.isRequired,
59-
}),
60-
context: PropTypes.object,
61-
children: PropTypes.any,
62-
}
63-
}
64-
6552
export default Provider

0 commit comments

Comments
 (0)