Skip to content

Commit

Permalink
add initialCache false option
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 committed Dec 14, 2022
1 parent e739b1c commit 04f9d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composables/useAviary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function useAviary(path: string, options: Record<string, an
// manually a generating fetch key here as a workaround for an issue in nuxt3 rc6
// https://github.com/nuxt/framework/issues/5993
const key = hash(['aviary', path, options, refreshTimestamp])
const { data, error } = await useFetch(path, { baseURL: config['API_URL'], key, ...options })
const { data, error } = await useFetch(path, { baseURL: config['API_URL'], key, initialCache: false, ...options })
const transformedData = transformResponseData(data)
return { data: transformedData, error }
}

0 comments on commit 04f9d34

Please sign in to comment.