0.2.1 • Published 3 years ago
kea-waitfor v0.2.1
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]
})