Set markdown renderer as client only to fix hydration issues. Will later try to improve it and set it back as normal

This commit is contained in:
2024-09-09 14:43:53 +02:00
parent 09f4f3c482
commit cbef6d1289
9 changed files with 41 additions and 12 deletions

View File

@@ -54,9 +54,9 @@ async function fetch()
fetched.value = true;
pending.value = true;
const { data } = await useFetch(`/api/project/${props.project}/file/${encodeURIComponent(props.path)}`);
const data = await $fetch(`/api/project/${props.project}/file/${encodeURIComponent(props.path)}`);
pending.value = false;
file.value = data.value;
file.value = data;
}
</script>