From 515ab3c0cc26574ad47c341ad3cc9ef2a042d86f Mon Sep 17 00:00:00 2001 From: samuelreichor Date: Thu, 7 Nov 2024 20:38:20 +0100 Subject: [PATCH] Refactor useCraftQuery composable to use useAsyncData --- .changeset/eighty-files-grow.md | 5 +++++ playground/app.vue | 15 ++++++--------- playground/nuxt.config.ts | 2 +- src/runtime/composables/useCraftQuery.ts | 21 +++++++-------------- 4 files changed, 19 insertions(+), 24 deletions(-) create mode 100644 .changeset/eighty-files-grow.md diff --git a/.changeset/eighty-files-grow.md b/.changeset/eighty-files-grow.md new file mode 100644 index 0000000..5158ba4 --- /dev/null +++ b/.changeset/eighty-files-grow.md @@ -0,0 +1,5 @@ +--- +"nuxt-craftcms": patch +--- + +Refactor useCraftQuery composable to use useAsyncData for more control diff --git a/playground/app.vue b/playground/app.vue index d2309aa..c19911d 100644 --- a/playground/app.vue +++ b/playground/app.vue @@ -1,21 +1,18 @@