npm

await-state

1.0.1 • Public • Published

await-state

await a desired redux state

Usage

import awaitState from 'await-state'

// resolves immediately if the condition is already true
// or later, whenever it becomes true
await awaitState(store, booleanReturningSelector) // e.g. (state) => state.matrix.isLoaded

// the condition booleanReturningSelector is true!

Readme

Keywords

none

Package Sidebar

Install

npm i await-state

Weekly Downloads

2,723

Version

1.0.1

License

MIT

Unpacked Size

1.33 kB

Total Files

3

Last publish

Collaborators

  • jprichardson
  • tenaciousmv