notes
An app state of notes currently loaded for the note list bar.
To get the notes state:
const { notes } = inkdrop.store.getState()Or, to connect with your React component:
import { useSelector } from 'react-redux'
const selector = ({ notes }) => notes
const MyComponent = props => {
const notes = useSelector(selector)
// render
}Data Structure
items: Note[]
An array of Notes.
hashedItems: { [noteId]: Note }
A map which keys are noteId and values are Note.
lastQuery: ?NoteQuery
The last note query to show the list of notes
cursor: NoteQueryCursor | null
The current cursor to list the notes
totalRows: number
Number of items
timestamp: number
Last datetime when the state was changed
viewOptions: ?NotesViewOptions
The note list view options
loading: boolean
true while notes are being loaded
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!