db

An app state of database synchronization. To get the notes state:

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

Or, to connect with your React component:

import { connect } from "react-redux"

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

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

Data Structure

isSyncing: ?boolean

true if the database is syncing. undefined if it has not ever been synced yet since the app launched.

lastSyncTime: ?number

The last datetime when the database finished syncing. undefined if it has not ever been synced yet since the app launched.

lastSyncError: Error | null

The last error ocurred while syncing.

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!