ixrock / XTranslate

Easy translate text on web pages (chrome extension)
https://chrome.google.com/webstore/detail/xtranslate/gfgpkepllngchpmcippidfhmbhlljhoo
117 stars 28 forks source link

Avoid race condition when work with storage #78

Closed ixrock closed 5 months ago

ixrock commented 1 year ago

Otherwise it might lead to stale state. Tested with 25k+ items or around 2-3MB of exported json data.

Demo: fast items removal leads to previous/outdated state

https://github.com/ixrock/XTranslate/assets/6377066/36fc81ff-b913-41b4-baf2-a8c20d4f352a