Skip to content

Commit ea90e26

Browse files
authored
docs: need async (#188)
1 parent f0859d9 commit ea90e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const handleInitialize = React.useCallback((instance) => {
170170
editorCore.current = instance
171171
}, [])
172172

173-
const handleSave = React.useCallback(() => {
173+
const handleSave = React.useCallback(async () => {
174174
const savedData = await editorCore.current.save();
175175
}, [])
176176

0 commit comments

Comments
 (0)