1.0.1 • Published 4 years ago

await-state v1.0.1

Weekly downloads
922
License
MIT
Repository
-
Last release
4 years ago

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!