tags
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 { useSelector } from 'react-redux'
const selector = ({ tags }) => tags
const MyComponent = props => {
const tags = useSelector(selector)
// 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!