aurelia vNext, bindable working unexpected #99
Comments
Nice find! this particular scenario was not unit tested yet, so that's about to change :) |
Great :-) Here is a sample on binding being slow. You dont notice it on rendered, but when using 'bind |
What the hydrate element instruction looks like: {
"res": "hello-world",
"instructions": [
{
"value": "some-text",
"dest": "name"
}
]
}
|
Interesting. So this is not binding being "slow", but rather everything else being too fast :P What you found though is actually a bug that I need to fix, because binding updates certainly must propagate to downstream custom elements before attached is called. I also noticed you seem a little thrown off by the lifecycle changes. Here is the HelloWorld custom element implement by hand: https://stackblitz.com/edit/aurelia-vnext-clarifications?file=helloWorld.ts @bigopon yeah this aliasing thing is a problem in |
@fkleuver It could also be an issue with |
I still think all @bindables should be set before the bound/attached is called.
Thanks for making this👍 I did look at parts lifecycle after I got fusbox to use ts source by adding ts:main to package.json (used src folder... hoping it worked 😂, had issues with sourcemaps working correctly, but think that is issue or something I did wrong in my fusebox config ) I think there is a bug in the |
Correct and this is how it works. As I clarified further on, there is currently a bug. The bug only applies to binding from one custom element to another. It queues the updates but it should only queue updates that end up at the DOM. this PR will fix that and you will not need to flush anything during bound.
I'll reply in that issue |
OK, just had to make sure. |
@fkleuver
Looks like it adds just a new variable to class called "name"
Expected behavior is that it will use "AttributeName"
Sample:
https://stackblitz.com/edit/aurelia-vnext-bug001?file=helloWorld.ts
The text was updated successfully, but these errors were encountered: