Jerko Steiner c10d5cf115 Fix a bug with Promise.catch() in PromiseMiddleware
The pending action will be modified and a newly created promise handler
will be returned.

This has (suddenly?) caused errors in tests because the catch() handlers defined in tests would be called before the one defined in PromiseMiddleware:

    const p = new Promise(...)

    const {payload} = store.dispatch({
      payload: new Promise(...),
      type: '...',
    })

    try {
      await payload
    } catch (err) {
      // this handler would be invoked before the catch handler in
      // PromiseMiddleware
    }

since the PromiseMiddleware adds a then-callback, followed by a
catch-callback.
2019-09-17 00:08:49 +07:00
2019-09-16 21:04:10 +07:00
2019-09-16 10:46:17 +07:00
2019-09-16 21:27:53 +07:00
2019-08-01 09:17:38 +07:00
2019-07-31 07:19:22 +08:00
2019-09-16 21:04:10 +07:00
2019-01-18 20:15:13 +01:00
2019-09-16 21:27:53 +07:00
2019-09-16 21:27:53 +07:00
2019-09-14 12:59:08 +07:00
Description
No description provided
2.5 MiB
Languages
TypeScript 97.9%
JavaScript 2%