Skip to content

Instantly share code, notes, and snippets.

@ChangJoo-Park
Created March 6, 2021 00:28
Show Gist options
  • Save ChangJoo-Park/c88c91fa771dd6fa14f77b17a0362f03 to your computer and use it in GitHub Desktop.
Save ChangJoo-Park/c88c91fa771dd6fa14f77b17a0362f03 to your computer and use it in GitHub Desktop.
const { fetch } = useFetch(async () => {
const { data } = await usePrefetchStore("dashboard", "/api/dashboard");
// data를 필요한 변수에 바인딩
})
fetch()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment