leonvogt / hotwire-dev-tools

Browser Dev Tools for Turbo and Stimulus
MIT License
184 stars 4 forks source link

Storage API error: `MAX_WRITE_OPERATIONS_PER_MINUTE` #17

Closed leonvogt closed 4 months ago

leonvogt commented 4 months ago

When updating the options in the popup too many times in a short time, the Chrome browser isn't to happy about it and print the error: This request exceeds the MAX_WRITE_OPERATIONS_PER_MINUTE quota. and won't save the changes. (Not sure about Firefox's behaviour yet)

See the storage API for more information about the error.
It seems like, we should not exceed 2 write operations per second.


Possible solutions that come to mind:

leonvogt commented 4 months ago

Not the most elegant solutions, but it seems to do the trick for now: 659fb04, 90cd9a5.
Especially 90cd9a5 was responsible for the regularly MAX_WRITE_OPERATIONS_PER_MINUTE error.