pref: optimize the diff to make it more accurately reflect changes (#11)
* pref: optimize the diff to make it more accurately reflect changes * pref: optimize the diff page selection
This commit is contained in:
@@ -164,7 +164,7 @@ export const EditorStudio = memo(
|
||||
[onSave],
|
||||
);
|
||||
|
||||
const handleAutoSave = useCallback(async () => {
|
||||
const handleSave = useCallback(async () => {
|
||||
const editor = editorRef.current;
|
||||
if (!editor) {
|
||||
return;
|
||||
@@ -192,7 +192,7 @@ export const EditorStudio = memo(
|
||||
documents={documents}
|
||||
onLoad={handleLoad}
|
||||
onReady={handleEditorReady}
|
||||
onSave={handleAutoSave}
|
||||
onSave={handleSave}
|
||||
onContentChange={handleContentChange}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user