diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 0c211739c..d1719b147 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -102,7 +102,7 @@ export function useTriliumOption(name: OptionNames, needsRefresh?: boolean): [st const newValue = options.get(name); setValue(newValue); } - }, [ name ])); + }, [ name, setValue ])); useDebugValue(name); diff --git a/apps/client/src/widgets/type_widgets/options/code_notes.tsx b/apps/client/src/widgets/type_widgets/options/code_notes.tsx index a9f30bacc..cf951e3b2 100644 --- a/apps/client/src/widgets/type_widgets/options/code_notes.tsx +++ b/apps/client/src/widgets/type_widgets/options/code_notes.tsx @@ -145,7 +145,7 @@ function CodeMimeTypes() { result[initial].push(mimeType); } return result; - }, []); + }, [ codeNotesMimeTypes ]); return (