fix: diffs double rendering when CSR'd
Some checks failed
deploy / deploy (push) Has been cancelled
Update Nix Hashes / update (push) Has been cancelled

This commit is contained in:
Adam 2025-11-28 20:08:50 -06:00
parent 5953378a12
commit 4dd9f33eba
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -46,7 +46,7 @@ export function Diff<T>(props: DiffProps<T>) {
})
onMount(() => {
if (isServer) return
if (isServer || !props.preloadedDiff) return
fileDiffInstance = new FileDiff<T>({
...createDefaultOptions(props.diffStyle),
...others,