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 { connect } from "react-redux"

const connector = connect(
  ({ editingNote }) => ({ editingNote }),
  dispatch => ({ dispatch })

const MyComponent = connector(props => {
  // 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!