Promise that waits for an action
Use in tests or with SSR to wait for a specific action
Add the package:
yarn add kea-waitfor
... then add it to kea's plugins list:
import { waitForPlugin } from 'kea-waitfor'
resetContext({
plugins: [waitForPlugin]
})