Closed panaC closed 1 month ago
setLocator
is called whenever TTS or Media Overlays audio playback is ongoing, which can flood the DB backend and React GUI with update requests unless throttled (debounced on leading edge would yield out-of-sync states especially if no leading edge terminator, and debounced on leading edge only would also cause massive refresh delays ... so throttle is probably the most reasonable / practical solution)
So, to keep things simple, maybe just throttle the call to apiDispatch(dispatch)()("publication/readingFinishedRefresh")
only?
https://github.com/edrlab/thorium-reader/commit/08b2c3c49ae976b811b805238c7bb020f6325208#r141722337