Browse Source

extract to composable

Jason Gorst 1 tháng trước cách đây
mục cha
commit
636bd9b9c8
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      app/composables/usePrefetchCharacterList.js

+ 4 - 0
app/composables/usePrefetchCharacterList.js

@@ -0,0 +1,4 @@
+export default async function usePrefetchCharacterList() {
+  const queryCache = useQueryCache()
+  return await queryCache.refresh(queryCache.ensure(characterListQuery))
+}