We launched a SPA lately that has been both the most complex project and the largest team that I’ve worked on to date and we’ve had a really terrific time with some new tooling that I’d like to share. All of these tooling changes are fairly easy to adopt in any new SPA and have greatly eased some of the pains associated with the development of a typical SPA.
Subscribing to a ko.computed isn’t the same thing as subscribing to a ko.observable. Ryan Niemeyer has written on the topic and I’ll admit, it took me a while to wrap my head around it. I’ll go over the problem and how we bypass it, but the end result is really handy and reusable: a new ‘efficientlySubscribe’ method that is a part of all ko.computed’s. Continue reading Building an Efficient Subscription for knockout Computed Observables
Ryan Niemeyer has a great article on the
protectedComputed that he came up with, but I needed a little more functionality out of it. I ended up adding a few things and wanted to get it online for public consumption if anyone found the new functionality useful, so here it is! Continue reading Extending Ryan Niemeyer’s protectedComputed