Skip to content

x-ignore+ initTree() (for "lazyloading") not working anymore (version >= 3.13.4) #4457

Answered by SimoTod
krausste asked this question in 5. Bugs
Discussion options

You must be logged in to vote

@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

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@krausste
Comment options

@nikitaourazbaev
Comment options

@SimoTod
Comment options

SimoTod Dec 3, 2024
Collaborator

Answer selected by krausste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants