Replies: 1 comment
-
I just found a simple solution: use render() when knockout track got its viewModel, and then applyBindings() to it. Cheer to upgrade finally ^^ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an webapp on preactjs and use knockout.js for appearance of imagery layers' ordering and some other attributes. When upgraded to the newest Preact version, it not work any more. I simplified my control and reproduce this problem in codesandbox:
https://codesandbox.io/s/preacttestknock02-xdhpq?file=/src/index.js
When setting preact version as 10.5.10 (in package.json, as this link currently shown), everything is ok. There are 3 testing "nodes" (in this case: test1, test2, test3), and can be raised/lowered.
But if it change to 10.5.11/10.5.12, there will be an additional dummy node. Seems the procedure of create elements and compare difference of children changed after v10.5.11 when I debug my app on chrome.
I'm not sure I use preactjs properly in such way, and any comments would be appreciated if there is any possible way, alternatives, or hints to fix it. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions