aohua / redux-state-sync

A lightweight middleware to sync your redux state across browser tabs
MIT License
233 stars 29 forks source link

Sync is slow / laggy on Indexed DB #69

Open Kalhama opened 4 years ago

Kalhama commented 4 years ago

Hi,

For some reason sync over IDB seems to be very slow. When using native / localStorage this issue disappears. I tested this on Chrome Version 84.0.4147.89 (Official Build) (64-bit) and Safari 13.1.1 (15609.2.9.1.2).

I thought maybe it's a problem in a way how the package uses IDB. However, if it's an issue in IDB itself, it would be a nice option to be able to choose automatically between native and localstorage (ban IDB).

aohua commented 4 years ago

Hi @Kalhama, thank you for your feedback, I will do some performance test as well. Temporally, you may consider force to use localstorage as the sync method.