Closed arvind0598 closed 3 years ago
the useRepoData hook has these two lines:
const { data, error } = useSWR(['/api/search/', repo], repo ? fetcher : null); isLoading: !error && !data,
This ends up meaning that isLoading is true BEFORE the user actually enters any data. This issue should enhance this and stop showing the "Loading" text if that's the case.
I just fixed this: https://github.com/arvind0598/better-first-issues/pull/15
Video: https://www.loom.com/share/d0ea2c0762724054bb3607861cbd8dca
Fixed in #15
the useRepoData hook has these two lines:
This ends up meaning that isLoading is true BEFORE the user actually enters any data. This issue should enhance this and stop showing the "Loading" text if that's the case.