2022-07-14
2749
#react
Abdulazeez Abdulazeez Adeshina
11974
Jul 14, 2022 ⋅ 9 min read

Using Suspense and React Query: Tutorial with examples

Abdulazeez Abdulazeez Adeshina Software enthusiast, writer, food lover, and hacker.

Recent posts:

how to hide scrollbars with CSS

How to use CSS to hide scrollbars without impacting scrolling

Learn how to hide the scrollbar in popular web browsers by making use of modern CSS techniques, and dive into some interactive examples.

Fimber Elemuwa
Mar 4, 2025 ⋅ 10 min read

16 React component libraries and kits for improved UI

Discover 16 of the most useful React content libraries and kits, and learn how to use them in your next React app.

Chidume Nnamdi
Mar 4, 2025 ⋅ 16 min read
typescript vs javascript

TypeScript vs. JavaScript: Differences and use cases for each

Choosing between TypeScript and JavaScript depends on your project’s complexity, team structure, and long-term goals.

Kayode Adeniyi
Mar 4, 2025 ⋅ 4 min read
Understanding UUIDs In Node.js

Understanding UUIDs in Node.js

Generate and validate UUIDs in Node.js using libraries like `uuid`, `short-uuid`, and `nanoid`, covering UUID versions and best practices.

Ukeje Goodness
Mar 3, 2025 ⋅ 7 min read
View all posts

4 Replies to "Using Suspense and React Query: Tutorial with examples"

  1. your app file is leaving me bugs.

    react-dom.development.js:28439 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up default and named imports.

    Check the render method of `App`.
    at createFiberFromTypeAndProps

    super annoying after making it halfway through this and coding along for an hour…

  2. You need to update this article… otherwise the App/index.js file breaks. took me a solid hour to fix this. this is the same in v3 and v4

    const queryClient = new QueryClient({
    defaultOptions: {
    queries: {
    suspense: true,
    },
    },
    });

Leave a Reply