-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
Description
What problem does this feature solve?
Right now, v-once
will render the component on creation, which is great if the data is available, however it would be nice to be able to allow the component to rerender until async data is available, then freeze the contents so it no longer impacts performance.
What does the proposed API look like?
Allow v-once
to take a boolean parameter, eg :v-once="completed"
, and if this parameter is truthy, the default v-once
behavior is applied, otherwise v-once
is ignored.