-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: support usage of v-once
with v-if
#200
Conversation
✅ Deploy Preview for vapor-repl ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for vapor-template-explorer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size ReportBundles
Usages
|
Thank you, sxzz, for helping me with the modifications. |
a212832
to
fc638b8
Compare
fc638b8
to
69a8908
Compare
@@ -36,7 +36,8 @@ export function genIf( | |||
vaporHelper('createIf'), | |||
conditionExpr, | |||
positiveArg, | |||
negativeArg, | |||
negativeArg || (once ? 'null' : false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a placeholder if once is true but no negative branch.
v-once
with v-if
Implemented basic v-once support for v-if/else via a once flag, please review and advise if any scenarios are unaddressed.