We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7946aac commit 79d9323Copy full SHA for 79d9323
client/src/Pages/NotesPage.js
@@ -39,7 +39,12 @@ function NotesPage() {
39
if (error === 'Нет авторизации') auth.logout()
40
clearError()
41
// eslint-disable-next-line react-hooks/exhaustive-deps
42
- }, [error, clearError])
+ }, [error])
43
+
44
+ /** очистка message */
45
+ React.useEffect(() => {
46
+ return () => message && setMessage(null)
47
+ })
48
49
/**Подключение хука id кудактируемой заметки */
50
const { editNoteId, setEditNoteId, unsetEditNoteId } = useEditNoteId()
0 commit comments