-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Else always uses cache in condition #365
Comments
I'm thinking that |
I think else should by default follow I think this is where we may want a new API like <div if.bind="cond" no-cache></div>
<div else no-cache></div> and or we could also pick up existing mechanism of <div if.bind="cond" view-cache="0"></div>
<div else view-cache="0"></div> |
I was thinking about something like this for vNext earlier because there currently is no way to tell a repeater how to cache without manually building the instructions. I think a |
It should be there in vCurrent but the implementor of the template controller has to take advantage of it in certain ways explicitly. So, maybe we can just make it better in vNext. |
The cache disabling feature we have introduced recently works well in
if
, but it is broken when it comes to theelse
.In the first commit (prior to the boolean argument refactoring) the
else
directive used thecache
from the linkedif
.However, now the
else
is always caching the view just like before the feature.I feel responsible for this missing behaviour, but the main question is whether we want the
else
to follow the if and always be cached or not cached, i.e.:or would you prefer to declare it explicite, i.e.:
@bigopon @EisenbergEffect
The text was updated successfully, but these errors were encountered: