-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useLiveQuery - MissingAPIError: IndexedDB API missing. #1472
Comments
That error happens in node where indexeddb is not available. I assume the code executes in server side rendering in nextjs. Can you instruct nextjs to not render that part server side? |
Thanks for replying. I tried different approach but none worked so I made a kind of listener based on service worker onmessage, sorry I’m too new to nextjs. But thank you so much for you work |
Same problem, this is how i resolve, disable ssr at page level
|
Upgrade dexie-react-hooks to latest and everything should just work without having to use dynamic import. (fixed in #1675) |
Hello,
I'm using useLiveQuery and everytime I refresh the page I have this error MissingAPIError: IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb
nextjs: 12.0.7
react: 17.0.2
dexie: ^3.2.1-beta.2
dexie-react-hooks: ^1.1.1
What do I do wrong?
The text was updated successfully, but these errors were encountered: