Closed Qsppl closed 3 months ago
Looks like a valid bug, I'll look at this.
v9.0.0
release waits to be released with some breaking changes, so it might take some time to update when the bugfix is there. I think you can avoid the bug for now.
The error only occurs in your example when a feature with a set id does not exist. You can avoid an error if you define a feature model with the id set to "3"
before the commented code. Then, the get method won't be called (the model will be taken from the memory cache).
Thank you. Take your time, for me this is a non-critical bug.
Fixed in v9.0.0
Thank you
Expected Behavior
I am calling two models to sync and I expect that the sync will not call the
store.get
/store.set
methods of that model's store.example1: https://codepen.io/qsppl/pen/oNRLqLz
Observed Behavior
I call two models to sync and the
store.get
method of that model's store is called once.Note
If you do not call the second model to synchronize, then
store.get
will not be called: example2: https://codepen.io/qsppl/pen/abrZYWv?editors=0010