'Conditional returning inside <script lang="ts" setup>?
https://vuejs.org/api/sfc-script-setup.html
Is it possible to have conditional returns inside that setup script?
<script lang="ts" setup>
onErrorCaptured((e) => {
error.value = e;
return true;
});
if (error.value) return { error };
return {};
</script>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
