Closed mirkolugano closed 7 years ago
Hi @mirkolugano, I check your problem at the moment. I can reproduce it and try to find a fix for it.
@mirkolugano The results of my investigation:
ko.cleanNode(...)
if the unbind
callback is invoked from Aurelia. This reverts the changes Knockout made before (so exactly what you need). Unfortunately the callback is called too late. The old view is already detached and this cleaning takes no effect. The document-fragment is cached as is.KnockoutBindable
works is not my plugin. It works because you used the Aurelia syntax to bind your data to your view. You can remove this workaround completely in order to use raw aurelia syntax without any knockout syntax in it.Yes, I noticed yesterday that also using normal aurelia computeds which simply return the corresponding knockout variables does the trick. Thanx for investigating, I guess I will switch to Aurelia syntax everywhere.
closed
Hi I am converting a web app from Durandal/Knockout to Aurelia CLI. I am successfully using the aurelia-knockout plugin, but I am having an issue when using view caching on Aurelia. I understand that view caching is still something which is "under construction" in Aurelia but I would like to know if this is a known issue or how if there is some workaround that I could use. My issue is described on this Stack Overflow post:
I know I can bypass the issue with KnockoutBindable but I was wondering if there was a 'cleaner' way to solve it.
Thank you in advance. If this is not the right place or way to submit such a request, please excuse me, and feel free to remove it.