| 8 | import { ReactReduxContext } from './Context' |
| 9 | |
| 10 | export interface ProviderProps< |
| 11 | A extends Action<string> = UnknownAction, |
| 12 | S = unknown, |
| 13 | > { |
| 14 | /** |
| 15 | * The single Redux store in your application. |
| 16 | */ |
| 17 | store: Store<S, A> |
| 18 | |
| 19 | /** |
| 20 | * An optional server state snapshot. Will be used during initial hydration render if available, to ensure that the UI output is consistent with the HTML generated on the server. |
| 21 | */ |
| 22 | serverState?: S |
| 23 | |
| 24 | /** |
| 25 | * Optional context to be used internally in react-redux. Use React.createContext() to create a context to be used. |
| 26 | * If this is used, you'll need to customize `connect` by supplying the same context provided to the Provider. |
| 27 | * Set the initial value to null, and the hooks will error |
| 28 | * if this is not overwritten by Provider. |
| 29 | */ |
| 30 | context?: Context<ReactReduxContextValue<S, A> | null> |
| 31 | |
| 32 | /** |
| 33 | * Determines the frequency of stability checks for all selectors. |
| 34 | * This setting overrides the global configuration for |
| 35 | * the `useSelector` stability check, allowing you to specify how often |
| 36 | * these checks should occur in development mode. |
| 37 | * |
| 38 | * @since 8.1.0 |
| 39 | */ |
| 40 | stabilityCheck?: DevModeCheckFrequency |
| 41 | |
| 42 | /** |
| 43 | * Determines the frequency of identity function checks for all selectors. |
| 44 | * This setting overrides the global configuration for |
| 45 | * the `useSelector` identity function check, allowing you to specify how often |
| 46 | * these checks should occur in development mode. |
| 47 | * |
| 48 | * **Note**: Previously referred to as `noopCheck`. |
| 49 | * |
| 50 | * @since 9.0.0 |
| 51 | */ |
| 52 | identityFunctionCheck?: DevModeCheckFrequency |
| 53 | |
| 54 | children: ReactNode |
| 55 | } |
| 56 | |
| 57 | function Provider<A extends Action<string> = UnknownAction, S = unknown>( |
| 58 | providerProps: ProviderProps<A, S>, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…