Open Cireo opened 3 years ago
Hello @SGrondin , do you have any more information on this? Thank you
We're also seeing this issue.
Facing this issue as well.
I spent like 5 hours trying to debug the code and ended up here facing this very same issue.
Facing same issue.
Error seems related to heartbeat handling in lib/LocalDatastore.js:
_startHeartbeat()
creates a heartbeat closure when a Bottleneck is created. This closure is handling reservoir refresh.
When updateSettings
, a new Bottleneck
is generated, but somehow the old heartbeat callback is still running, and reading the old storeOptions instead of reading the updated one.
Removing this.heartbeat==null
in the if statement to create a new closure fixes my case, altho not sure if this is the correct way. Not a JS expert, would love to see this fixed.
Nice debugging! I wonder if there is a binding fix
It appears that
updateSettings
causes reservoir logic to break, this appears to be true whether or not anything is updated, whether it is run before anything is scheduled or not. The only updates that take place are ones that set reservoir, which are happily consumed (but never refreshed).bug.js
Running: