An app state of note tags currently loaded for the sidebar. To get the tags state:

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

Or, to connect with your React component:

import { connect } from "react-redux"

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

const MyComponent = connector(props => {
  // render

Data Structure

all: Tag[]

An array of Tags.

hash: { [tagId]: Tag }

A map which keys are tagId and values are Tag.

lastUpdatedAt: number

Last datetime when the state was changed

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!