(hook: string, provider: string)
| 13 | type CreateContextReturn<T> = [React.Provider<T>, () => T, React.Context<T>] |
| 14 | |
| 15 | function getErrorMessage(hook: string, provider: string) { |
| 16 | return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}` |
| 17 | } |
| 18 | |
| 19 | export function createContext<T>(options: CreateContextOptions<T> = {}) { |
| 20 | const { |