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!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11,759latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11,759
1.0.01

Package Sidebar

Install

npm i await-state

Weekly Downloads

1,760

Version

1.0.1

License

MIT

Unpacked Size

1.33 kB

Total Files

3

Last publish

Collaborators

  • jprichardson
  • tenaciousmv