I face a memory issue when using big breeze.js entity list . I noticed it's because using this code in the knockout model library :
ko.extenders.intercept = function(target, interceptorOptions) {
var instance = interceptorOptions.instance;
var property = interceptorOptions.property;
// create a computed observable to intercept writes to our observable
var result;
if (target.splice) {
result = ko.computed({
read: target //always return the original observables value
});
} else {
result = ko.computed({
read: target, //always return the original observables value
write: function(newValue) {
instance._$interceptor(property, newValue, target);
return instance;
}
});
}
//return the new computed observable
return result;
};
Do you have any suggestion to do " instance._$interceptor(property, newValue, target);" without the ko.computed , it consumes alot of memory , if I comment the Ko.computed the memory decrease allot .
Thanks in advance ...