This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Releases: RickWong/react-transmit
Releases · RickWong/react-transmit
Release 3.2.0
Release 3.1.7
- Transmit >= 3.0 now targets React 0.14.
- Support deferred fragments through lambdas. Deferred fragments only run in on the client.
- Mass-rename of functions, options, and other objects to resemble the OFFICIAL Relay API once again.
- Implemented componentDidReceiveProps so rerenders now also refetch.
- Added
shouldContainerUpdate(nextVariables)
callback-option to allow prevention of refetches. - Added
Transmit.isContainer()
andTransmit.isRootContainer()
helper functions. (RootContainers in Transmit are technically Containers with initialVariables. Nothing fancy.)
Release 2.6.4
- The
emptyView
prop can now be a lazy callback. - Added
Transmit.setPromiseConstructor
for people who want to provide their own Promise implementation instead of usingglobal.Promise
. Also throws an Error at run-time if the platform'sglobal.Promise
is undefined. - Delete
window.__reactTransmitPacket
after first use.
Hey guys, thanks for all the contributions and constructive discussions. If there are any questions, you're welcome to open a new Issue. Your suggestions are appreciated.
Release 2.5.3
- setQueryPrams() now returns a Promise of the results.
- onQueryComplete(err, results) renamed to onQuery(promise), should now receive a Promise of the results.
- renderToString() now returns a Promise.
Release 2.3.2
- React Native support via
npm install react-transmit-native
setQueryParams(..., optionalQueryName)
can be used to fire a specific query.
Release 2.2.1
Isomorphic
renderToString()
andrender()
functions. (https://github.com/RickWong/react-isomorphic-starterkit/blob/4c6da8e3956507e4e05ed7917f90e5c1071953e0/src/server.js#L34-L52)
Caching
onQueryComplete()
callback allows external caching of the query results. (https://github.com/RickWong/react-transmit/blob/61d3301a88376837ae0f8f9854a8a27975acaacd/src/example/Main.js#L61)
Preloading
getAllQueries()
allows preloading query results before, for example, transitioning routes. (#4)
Release 1.1.0
Bug fixes. Rewrote the example to showcase 3 Transmit components working together.
Release 1.0.0
Finished example app.