Skip to content

why would the internal x-effect have a timing to output an empty $data #4472

Closed Answered by SimoTod
debuggedme asked this question in 1. Help
Discussion options

You must be logged in to vote

Everything mentioned in the effect will trigger the effect when changed so you should never set anything in qlan effect but always do it on the nextTick otherwise you get an effect that calls itslef. As mentioned above, your effect "deletes" the template itself which creates a leak where your template only exists in memory but is not linked to a component anymore so it will pront an empty data.

Not sure what the code is trying to achieve but ot looks like you could just use x-if.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@debuggedme
Comment options

@debuggedme
Comment options

@SimoTod
Comment options

SimoTod Dec 9, 2024
Collaborator

Answer selected by debuggedme
@ekwoka
Comment options

Comment options

You must be logged in to vote
2 replies
@ekwoka
Comment options

@debuggedme
Comment options

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