editingNote

An app state of currently opened note in the editor. To get the editingNote state:

const { editingNote } = inkdrop.store.getState()

Or, to connect with your React component:

import { useSelector } from 'react-redux'

const selector = ({ editingNote }) => editingNote

const MyComponent = props => {
  const editingNote = useSelector(selector)
  // render
}

Data Structure

The state represents Note data while a note opened, otherwise it's null or undefined.

Can you help us improve these docs?

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!