react-query-blog-demo
react-query-blog-demo copied to clipboard
Demo not working for react-query v3.34.7
Hi, I tried the demo with "react": "^17.0.2", "next": "^12.0.7" and "react-query": "^3.34.7" and get this error:
1 of 2 unhandled errors
Unhandled Runtime Error
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`.
Also tried it with same instance of the browser as "react-query": "^2.26.4" and get this error
Unhandled Runtime Error
TypeError: client.getMutationCache is not a function
Source
src\index.js (30:14) @ restoreCache
28 | let cache = localStorage.getItem('queryCache_1')
29 | if (cache) {
> 30 | hydrate(queryCache, JSON.parse(cache))
| ^
31 | }
32 |
33 | queryCache.subscribe((cache) => {
How to update this demo for latest version of react-query? Thanks