New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested template being called unexpectedly #89
Comments
I think the issue here (could be wrong) is arrow doesn’t destroy the previous template but memoizes it for future re-insertion (like |
Makes sense. I do think it would be desirable if the control flow could be respected. For the time being, is there any workaround to force arrow to ditch the template? |
I have a conditionally-included template like this:
state
is a reactive object with an arrayitems
and an integer propertyindex
. What surprises me is that sometimes I am hitting a javascript error on this line:The problem is that
currentItem()
is null. However, I would have expected this not to be called because of thehasItem()
conditional. Am I misunderstanding something about how Arrow is supposed to work with conditional templates?The text was updated successfully, but these errors were encountered: