-
-
Notifications
You must be signed in to change notification settings - Fork 522
using loading utilities inside script setup #1526
Unanswered
tobystokes
asked this question in
Q&A
-
I can't for the life of me get the loading utilities to work from a <script setup>
.
However they do work fine from within a setup function:
✅
<script>
import { useGlobalQueryLoading } from "@vue/apollo-composable";
export default {
setup() {
const loading = useGlobalQueryLoading();
return {
loading
};
}
};
</script>
But this doesn't:
❌
<script setup>
import { useGlobalQueryLoading } from "@vue/apollo-composable";
const loading = useGlobalQueryLoading();
</script>
I can't think of a reason why that 'syntactic sugar' should make a difference, is this expected or known behaviour?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment