MyGit

3.1.0

pburtchaell/redux-promise-middleware

版本发布时间: 2016-06-26 07:38:28

pburtchaell/redux-promise-middleware最新发布版本:6.2.0(2023-12-28 03:07:18)

The rejected parameter for a promise is now an error object. This change is not breaking.

// before
Promise.reject('foo').catch(error => {
  console.log(error instanceof Error); // => false
});

// after
Promise.reject('foo').catch(error => {
  console.log(error instanceof Error); // => true
});

// error object keys remain the same as 3.0.x
Promise.reject('foo').catch(({ reason, action }) => {
  console.log(reason); // => 'foo'
});

相关地址:原始地址 下载(tar) 下载(zip)

查看:2016-06-26发行的版本