Skip to content

Is there a way to break/return from Vue3 <script setup>? #6862

Discussion options

You must be logged in to vote

Default life cycle of <script setup> is created so I use:

const fetchData = async ()=> {
        clearQueue();
	const { abort, canAbort, error, execute, data } = useOktaFetch(url).get().json();
	addToQueue( {abort, canAbort} );
	await execute();
}
fetchData();

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yangtoude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants