Comments (5)
Some more info...
I am using ko.pureComputed and changed back to ko.computed to see if this had any effect.
When i did this i got the error 2 twice and the page elements for self.items.data did not load.
from knockout-deferred-updates.
I have checked out other scripts that i am loading (legacy ko widget libraries i have developed) and changed ko.computed to ko.pureComputed.
This resolves the issue and i am getting no errors on the page.
So ko.computed cannot be used with this plugin then?
thanks
Ross
from knockout-deferred-updates.
From your description, I'm not sure where the problem is coming from. Is it possible for you to put together an example of the failure?
from knockout-deferred-updates.
Hello Michael
Unfortunately the page i have developed is pretty complex with loads and loads of view models loaded and a large library of code supporting them.
All i can tell you is that using ko.pureComputed instead of ko.computed in all of my knockout view models has resolved the issue. I was unable to debug and identify the exact piece of my code that was responsible.
By the way this library has definately given the page a cleaner look when loading and speeded things up...thanks very much!!!!
cheers
Ross
from knockout-deferred-updates.
I get the same error, it could be related to the mapping plugin. I've also got quite a complex page but I stumbled upon this one when I added something like:
this.modelProp = ko.mapping.fromJS(anArray, {
create: function(value) {
var vm = ko.mapping.fromJS(value)
vm.obs = ko.observable('foo');
vm.comp = ko.computed(function() {
return ["foo"];
});
return vm;
}
});
I get the error when using the 'comp' computed in the page bindings (but not with the 'obs' observable).
Logging the currentFrame just before the error indicates that this could be a minification issue. Most of them have human readable properties like 'callback', 'computed' etc. But, the one causing the error have minified property names like 'Ca', 'La' and 'w'...
from knockout-deferred-updates.
Related Issues (20)
- IE8 Compatibility - try...finally blocks HOT 2
- semver tags (for bower compatibility) HOT 2
- Doesn't support KO 3.0.0 HOT 1
- dependentObservable.notifySubscribers = undefined HOT 3
- Consider using postMessage rather than setTimeout HOT 1
- Experiencing lock-up (memory leak, +4MB/s, 30% CPU) when including this after knockout in chrome. HOT 17
- Browser CPU goes to 100% after including this js on my page HOT 14
- knockout-deferred-updates does not play nicely with Throttle in Safari IOS 7 HOT 7
- Doesn't support KO 3.1.0beta HOT 2
- Performance seems to be much worse than without deferred-updates HOT 1
- Performance issue... again
- knockout 3.2 HOT 3
- Knockout computed update notification sometimes not firing HOT 5
- Use `after` on update for bindings which are deferred together. HOT 3
- Knockout 3.3? HOT 2
- Breaks deferEvaluation computed bindings on IE10 with KO 3.1+ HOT 5
- Uncaught binding error prevents other bindings from running
- Knockout 3.4 HOT 7
- newCallback used out of scope HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knockout-deferred-updates.