Releases: async-library/react-async
Releases · async-library/react-async
v3.10.0: Custom displayName
- Fix display name on helper components.
- Support custom displayName when using createInstance.
v3.8.1: Fix Metro bundler for React Native
- 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`
- Also pass props to
deferFn
, as it does forpromiseFn
v3.7.2: Cancel promise when promiseFn changes
- When value of
promiseFn
prop changes, cancel any pending promise (#1)
Unset old data on error
- Fix unsetting
data
when the promise rejects, unlesspersist
flag is set (#4)
Server-side rendering
- Add support for server-side rendering by allowing Async to be initialized with data and not loading on mount
More sensible initial `isLoading` value
- Set
isLoading: true
on init when apromiseFn
is provided (#2)
Avoid unnecessary rerenders
- Don't create a new object as Context value, as this would trigger unnecessary rerenders of Consumers
<Async.Pending persist>
- Add 'persist' option to
<Async.Pending>
helper so it can also show while loading for the first time
Async.Pending
- Add
<Async.Pending>
helper for not-yet-invokeddeferFn