MyGit

5.0.0

pburtchaell/redux-promise-middleware

版本发布时间: 2017-11-20 00:26:05

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

Breaking Changes 🔥 🚒

The promiseTypeSeparator config property is now promiseTypeDelimiter.

Why? Because delimiters are one or more characters used to specify the boundaries in strings. It’s a delimiter, not a separator!

applyMiddleware(
  promiseMiddleware({
    promiseTypeDelimiter: '/'
  })
)

With the above configuration, given FOO async action, the type will be appended with a forward slash / delimiter.

{
  type: 'FOO/PENDING'
}

New ✨

Here’s an async/await example:

{
  type: 'TYPE',
  async payload () {
    const fooData = await getFooData();
    const barData = await getBarData(fooData);

    return barData;
  }
}

See the Async/Await guide for more.

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

查看:2017-11-20发行的版本