- commit
- 695ae6c
- parent
- a2ef831
- author
- Eric Bower
- date
- 2024-03-04 15:06:32 -0500 EST
docs: getting started
1 files changed,
+2,
-2
+2,
-2
1@@ -103,9 +103,9 @@ function App() {
2 }
3
4 function Example() {
5- const { isLoading, isError, message, data } = useCache(fetchRepo());
6+ const { isInitialLoading, isError, message, data } = useCache(fetchRepo());
7
8- if (isLoading || !data) return "Loading ...";
9+ if (isInitialLoading) return "Loading ...";
10
11 if (isError) return `An error has occurred: ${message}`;
12