Skip to content

Releases: async-library/react-async

v3.10.0: Custom displayName

30 Dec 19:46

Choose a tag to compare

  • Fix display name on helper components.
  • Support custom displayName when using createInstance.

v3.8.1: Fix Metro bundler for React Native

09 Oct 15:00

Choose a tag to compare

  • Limit the set of files published to npm, removing .babelrc which caused issues with the Metro bundler (#6)

v3.8.0: Pass props to `deferFn`

08 Oct 15:03

Choose a tag to compare

  • Also pass props to deferFn, as it does for promiseFn

v3.7.2: Cancel promise when promiseFn changes

08 Oct 15:00

Choose a tag to compare

  • When value of promiseFn prop changes, cancel any pending promise (#1)

Unset old data on error

08 Oct 14:57

Choose a tag to compare

  • Fix unsetting data when the promise rejects, unless persist flag is set (#4)

Server-side rendering

08 Oct 14:53

Choose a tag to compare

  • Add support for server-side rendering by allowing Async to be initialized with data and not loading on mount

More sensible initial `isLoading` value

08 Oct 14:52

Choose a tag to compare

  • Set isLoading: true on init when a promiseFn is provided (#2)

Avoid unnecessary rerenders

08 Oct 14:49

Choose a tag to compare

  • Don't create a new object as Context value, as this would trigger unnecessary rerenders of Consumers

<Async.Pending persist>

08 Oct 14:45

Choose a tag to compare

  • Add 'persist' option to <Async.Pending> helper so it can also show while loading for the first time

Async.Pending

08 Oct 14:43

Choose a tag to compare

  • Add <Async.Pending> helper for not-yet-invoked deferFn