We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03848f2 commit b6f319cCopy full SHA for b6f319c
1 file changed
app/pages/code/[...path].vue
@@ -89,7 +89,6 @@ function switchVersion(newVersion: string) {
89
const { data: fileTree, status: treeStatus } = useFetch<PackageFileTreeResponse>(
90
() => `/api/registry/files/${packageName.value}/v/${version.value}`,
91
{
92
- watch: [packageName, version],
93
immediate: !!version.value,
94
},
95
)
@@ -134,10 +133,7 @@ const fileContentUrl = computed(() => {
134
133
135
const { data: fileContent, status: fileStatus } = useFetch<PackageFileContentResponse>(
136
() => fileContentUrl.value!,
137
- {
138
- watch: [fileContentUrl],
139
- immediate: !!fileContentUrl.value,
140
- },
+ { immediate: !!fileContentUrl.value },
141
142
143
// Track hash manually since we update it via history API to avoid scroll
0 commit comments