chore: reset palette state

This commit is contained in:
Aslam H
2024-10-22 21:29:08 +07:00
parent 2e00e9d692
commit adbb9a6b95
4 changed files with 11 additions and 6 deletions

View File

@@ -239,12 +239,13 @@ export const useLaEditor = ({
...props,
}),
[
me,
placeholder,
mergedEditorProps,
props,
throttledSetValue,
handleCreate,
handleBlur,
props,
],
)

View File

@@ -48,6 +48,7 @@ export function useThrottleCallback<T extends AnyFunction>(
)
}
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[delay, ...deps],
) as T
}