mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 05:10:58 +08:00
fix: diffs double rendering when CSR'd
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user