-
Hi, The release 3.13.4 came with a change for x-ignore and init tree: 463f277 I am wondering if it is attended behaviour that an element that once had an x-ignore attribute can not be initialized anymore via I prepared a simple example of our lazyloading approach in two versions:
Thanks a lot in advance for your feedback! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yeah, i think that line is supposed to be |
Beta Was this translation helpful? Give feedback.
-
Also running into this. |
Beta Was this translation helpful? Give feedback.
-
@krausste So, it turned out it wasn't the line in the original post (the code removes x-ignore so you can see that the subtrees initialises correctly but it skips the main element because it was marked as initialised by https://github.com/alpinejs/alpine/pull/4447/files#diff-446fd9132e92dae865fe0867395c131a4c77074eb308a22c038c07988c414dccR99 even if in reality it was skipped because of the x-ignore directives on the first run so basically x-data was never processed). Opened #4458 to fix it which also contains a test for this use case |
Beta Was this translation helpful? Give feedback.
@krausste So, it turned out it wasn't the line in the original post (the code removes x-ignore so you can see that the subtrees initialises correctly but it skips the main element because it was marked as initialised by https://github.com/alpinejs/alpine/pull/4447/files#diff-446fd9132e92dae865fe0867395c131a4c77074eb308a22c038c07988c414dccR99 even if in reality it was skipped because of the x-ignore directives on the first run so basically x-data was never processed).
Opened #4458 to fix it which also contains a test for this use case