mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use mutate as effect hook
This commit is contained in:
parent
73498383ba
commit
cb054dcf42
2 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue