Replies: 1 comment
-
Due to some reasons. it's will send request with async way in 2.20.x. so if you use <script setup>
const { loading, data, error } = useRequest(getList());
</script> or you just wanna send request, you can do with a single method instance, like this. <script setup>
onMounted(async () => {
await getList();
});
</script> if there were many such this code, I recommend to downgrade to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that I should not write
useRequest
insideonMounted
.But I want to know which modification or commit make it not working in 2.20.3?
Beta Was this translation helpful? Give feedback.
All reactions