assuncaocharles / react-indexed-db

A service that wraps IndexedDB database in an Declarative way. It exposes very simple promises API to enable the usage of IndexedDB without most of it plumbing.
MIT License
111 stars 38 forks source link

please support next.js #42

Closed iamdenny closed 3 years ago

iamdenny commented 3 years ago

image

I'm not going to use this in server side. but I need to import this library. please make this work.

assuncaocharles commented 3 years ago

Hi @iamdenny

Feel free to open a PR fixing it.

bhpoliveira commented 3 years ago

Hey @iamdenny do you mind providing a code sample and a bit more context? Some options are using dynamic imports and react's useEffect hook. The last one will prevent the code of run on the server-side.