Skip to content

Commit 0512a0c

Browse files
committed
fix react being included in types rollup
1 parent 663b060 commit 0512a0c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/react-async/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import React from "react"
2+
13
export type AsyncChildren<T> = ((state: AsyncState<T>) => React.ReactNode) | React.ReactNode
24
export type InitialChildren<T> = ((state: AsyncInitial<T>) => React.ReactNode) | React.ReactNode
35
export type PendingChildren<T> = ((state: AsyncPending<T>) => React.ReactNode) | React.ReactNode

packages/react-async/src/useAsync.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCallback, useDebugValue, useEffect, useMemo, useRef, useReducer } from "react"
1+
import React, { useCallback, useDebugValue, useEffect, useMemo, useRef, useReducer } from "react"
22

33
import globalScope from "./globalScope"
44
import { actionTypes, init, dispatchMiddleware, reducer as asyncReducer } from "./reducer"

0 commit comments

Comments
 (0)