Skip to content

Commit

Permalink
perf(nuxt): use shallow ref + separate data chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 18, 2024
1 parent 9627acd commit 4c146f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/nuxt/components/Table.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script setup>
import { testData } from "testdata";
const { data } = await useAsyncData(testData);
const { data } = await useAsyncData(() => import('testdata').then(r => r.testData()), { deep: false });
</script>

<template>
Expand Down

0 comments on commit 4c146f2

Please sign in to comment.