When you scope your data eg.
let $scope = model.scope('_page.variable') And set it to null
$scope.set(null);
In method react-sharedb/lib/subscribe.js: _updateCollectionData, will be called:
this.data = (0, _observerUtil.observable)(this.data);
Where this.data == null;
In observer methods it will test if it is not instrument and call on it:
var constructor = ref.constructor Where ref will be null.
Temporary fix for this is to set false insteadof null.
When you scope your data eg.
let $scope = model.scope('_page.variable')And set it to null$scope.set(null);In method react-sharedb/lib/subscribe.js: _updateCollectionData, will be called:
this.data = (0, _observerUtil.observable)(this.data);Where this.data == null;
In observer methods it will test if it is not instrument and call on it:
var constructor = ref.constructorWhere ref will be null.Temporary fix for this is to set false insteadof null.