Skip to content

Commit 21404ed

Browse files
committed
Changed 47
1 parent 47a57c8 commit 21404ed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/06-advanced-hooks/47-discriminated-unions-in-usestate.solution.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import { useEffect, useState } from "react";
33

44
type State =
55
| {
6-
status: "loading";
7-
}
8-
| {
9-
status: "loaded";
6+
status: "loading" | "loaded";
107
}
118
| {
129
status: "error";

0 commit comments

Comments
 (0)