According to the Vue 3.0 guide:
Methods called from a template should not have any side effects, such as changing data or triggering asynchronous process