Dexie.js ♥ Next.js

Using Dexie.js with plain vanilla react has been working seamlessly for a couple of years now with useLiveQuery() in the dexie-react-hooks package. What hasn’t been working so great though has been to using it in Next.js, and the reasons for that turned out to be quite simple: The hook would…