Skip to content

Commit 38ed7fe

Browse files
site
1 parent 353872a commit 38ed7fe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Using the `template mode`, the `DiffView` component can utilize the `fast-diff`
7474
```ts
7575
import { setEnableFastDiffTemplate } from '@git-diff-view/core' // or react/vue runtime package
7676
77+
// experimental feature, use with caution
7778
setEnableFastDiffTemplate(true);
7879
```
7980

ui/react-example/src/components/MainContent/MainContentDiffExampleView.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SplitSide } from "@git-diff-view/react";
1+
import { SplitSide, disableCache } from "@git-diff-view/react";
22
import { Box, Button, Card, CloseButton, Group, Stack, useMantineColorScheme, Text } from "@mantine/core";
33
import { usePrevious } from "@mantine/hooks";
44
import { memo, useEffect, useState } from "react";
@@ -9,6 +9,9 @@ import { Textarea } from "../TextArea";
99

1010
import type { DiffFile, DiffViewProps } from "@git-diff-view/react";
1111

12+
// disable diffFile Cache
13+
disableCache();
14+
1215
export const MainContentDiffExampleView = memo(
1316
({
1417
diffFile,

0 commit comments

Comments
 (0)