Skip to content

Commit 0007668

Browse files
committed
check error first, dataState second
1 parent 09b0901 commit 0007668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/data/defer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ function App() {
9494
},
9595
});
9696

97-
if (dataState === "empty") return "Loading...";
9897
if (error) return `Error! ${error.message}`;
98+
if (dataState === "empty") return "Loading...";
9999

100100
return (
101101
<>

0 commit comments

Comments
 (0)