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-14 12:01:29 +07:00
2019-09-14 12:01:29 +07:00
2019-09-10 21:29:10 +07:00