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!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.12,723latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.12,723
1.0.00

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