kea-waitfor
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

NPM Version minified minified + gzipped Backers on Open Collective Sponsors on Open Collective

kea-waitfor

Promise that waits for an action

What and why?

Use in tests or with SSR to wait for a specific action

Getting started

Add the package:

yarn add kea-waitfor

... then add it to kea's plugins list:

import { waitForPlugin } from 'kea-waitfor'

resetContext({
  plugins: [waitForPlugin]
})

Sample usage

Read the documentation

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    4,249
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    4,249
  • 0.2.0
    2
  • 0.1.1
    8
  • 0.1.0
    20

Package Sidebar

Install

npm i kea-waitfor

Weekly Downloads

4,279

Version

0.2.1

License

MIT

Unpacked Size

33.3 kB

Total Files

12

Last publish

Collaborators

  • mariusandra