Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Promise middleware: Avoid dispatching undefined results #10155
This solves the issue I raised on WordPress.org Slack: https://wordpress.slack.com/archives/C02QB2JS7/p1537861160000100.
● createRegistry › registerResolvers › should resolve promise non-action to dispatch Actions must be plain objects. Use custom middleware for async actions. at dispatch (node_modules/redux/lib/createStore.js:165:13) Test Suites: 1 failed, 1 total Tests: 1 failed, 20 passed, 21 total Snapshots: 0 total Time: 1.206s, estimated 2s