Use mutate as effect hook
This commit is contained in:
@ -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'
|
||||
|
||||
@ -216,9 +216,7 @@ export function NotebookContent(props: NotebookContentProps): JSX.Element {
|
||||
return () => {
|
||||
document.removeEventListener('highlightsUpdated', highlightsUpdated)
|
||||
}
|
||||
}, [forceUpdate])
|
||||
|
||||
console.log('articleData: ', articleData)
|
||||
}, [mutate])
|
||||
|
||||
return (
|
||||
<VStack
|
||||
|
||||
Reference in New Issue
Block a user