Skip to content

Commit 7bc2b56

Browse files
committed
README.md: use AsyncRequestStatusEnum to get status values and not the type, which used to be the enum
1 parent 9c6467e commit 7bc2b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ At the core of this package is `createAsyncRenderer`, which renders specific JSX
1717
```tsx
1818
function useMyData() {
1919
// Setup status state to reflect the state of your long running process
20-
const [status, setStatus] = useState<AsyncRequestStatus>(AsyncRequestStatus.INIT)
20+
const [status, setStatus] = useState<AsyncRequestStatus>(AsyncRequestStatusEnum.INIT)
2121
// Setup error state for any errors associated with your long running process
2222
const [error, setError] = useState<null | string>(null)
2323
// Setup data state for any data returned from your long running process

0 commit comments

Comments
 (0)