editingNote

An app state of the currently opened note in the editor. You can obtain the editingNote state and integrate it with React components.


Data Structure

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

Get the editingNote state manually:

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

Connect the state with your React component:

import { useSelector } from 'react-redux'
const selector = ({ editingNote }) => editingNote
const MyComponent = props => {
  const editingNote = useSelector(selector)
  // render
}
Can you help us improve the docs? 🙏

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