fix: update dependencies in FileSectionDiff to include discardCounter
- Modified the dependency array in the useEffect hook to include discardCounter, ensuring proper reactivity when the discard counter changes.
This commit is contained in:
parent
43dd94cd2c
commit
69f7cd333a
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ export const FileSectionDiff = ({
|
||||||
if (localEditorViewRef.current) {
|
if (localEditorViewRef.current) {
|
||||||
onEditorViewReady(file.filePath, localEditorViewRef.current);
|
onEditorViewReady(file.filePath, localEditorViewRef.current);
|
||||||
}
|
}
|
||||||
}, [file.filePath, onEditorViewReady]);
|
}, [file.filePath, onEditorViewReady, discardCounter]);
|
||||||
|
|
||||||
// Auto-viewed sentinel observer
|
// Auto-viewed sentinel observer
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue