Use mutate as effect hook

This commit is contained in:
Jackson Harper
2023-06-27 15:48:55 +08:00
parent 73498383ba
commit cb054dcf42
2 changed files with 1 additions and 4 deletions

View File

@ -19,7 +19,6 @@ import { HighlightBar, HighlightAction } from '../../patterns/HighlightBar'
import { removeHighlights } from '../../../lib/highlights/deleteHighlight'
import { createHighlight } from '../../../lib/highlights/createHighlight'
import { HighlightNoteModal } from './HighlightNoteModal'
import { NotebookModal } from './NotebookModal'
import { showErrorToast, showSuccessToast } from '../../../lib/toastHelpers'
import { ArticleMutations } from '../../../lib/articleActions'
import { isTouchScreenDevice } from '../../../lib/deviceType'

View File

@ -216,9 +216,7 @@ export function NotebookContent(props: NotebookContentProps): JSX.Element {
return () => {
document.removeEventListener('highlightsUpdated', highlightsUpdated)
}
}, [forceUpdate])
console.log('articleData: ', articleData)
}, [mutate])
return (
<VStack