-
React Async is now compatible with React >= 0.12.0 only.
-
ReactAsync.renderComponentToStringWithAsyncState
is renamed toReactAsync.renderToStringAsync
. The old name still works but issues a deprecation warning.
- Setting empty async state when getInitialStateAsync returns
false
- Avoid setting an empty state (set
{}
in that case).
- Add support for returning promise from getInitialStateAsync.
- fix React.renderComponentToString inside Fiber but.
- support for React 0.11
- expose
<Preloaded />
component directly onReactAsync
.
- remove BaseMixin.componentWillReceiveProps so
asyncState
only takes effect during first render.
- escape unicode character in JSON data transfered from server to browser
- proper escaping for JSON data transfered from server to browser
- Preloaded component to defer rendering of async components unless their state is available.
- Hooks to serialize/deserialize async state — stateFromJSON/stateToJSON.
- Bump react dep to 0.10.0.
- Fix bug with updating injected state (via asyncState prop).
-
Fibers are now optional, they are only needed if you want to pre-render React components by fetching async state recursively, e.g. using
ReactAsync.renderComponentToStringWithAsyncState
-
ReactAsync.createClass
is removed, useReact.createClass
withReactAsync.Mixin
mixin instead. -
ReactAsync.renderComponent
is removed, useReact.renderComponent
instead. -
ReactAsync.renderComponentToString
is renamed toReactAsync.renderComponentToStringWithAsyncState
-
Add
ReactAsync.isAsyncComponent
to test if a component is an async component. -
Add
ReactAsync.prefetchAsyncState
to prefetch state of an async component.
- Check if async component is still mounted before updating its state from and async call.
-
ReactAsync.renderComponentToString
now can accept callback w/ 3rd argumentdata
. In this case data will not be injected automatically into the markup. -
ReactAsync.injectIntoMarkup(markup, data, scripts)
to inject data into markup as JSON blob and a list of scripts (URLs) as <script> elements.
-
Upgrade for React 0.9.0.
-
React is now a peer dependency of react-async.