Relay-inspired library based on Promises instead of GraphQL.
Updated dependencies. Merged PRs.
shouldContainerUpdate(nextVariables)
callback-option to allow prevention of refetches.Transmit.isContainer()
and Transmit.isRootContainer()
helper functions. (RootContainers in Transmit are technically Containers with initialVariables. Nothing fancy.)emptyView
prop can now be a lazy callback.Transmit.setPromiseConstructor
for people who want to provide their own Promise implementation instead of using global.Promise
. Also throws an Error at run-time if the platform's global.Promise
is undefined.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.
npm install react-transmit-native
setQueryParams(..., optionalQueryName)
can be used to fire a specific query.renderToString()
and render()
functions. (https://github.com/RickWong/react-isomorphic-starterkit/blob/4c6da8e3956507e4e05ed7917f90e5c1071953e0/src/server.js#L34-L52)onQueryComplete()
callback allows external caching of the query results. (https://github.com/RickWong/react-transmit/blob/61d3301a88376837ae0f8f9854a8a27975acaacd/src/example/Main.js#L61)getAllQueries()
allows preloading query results before, for example, transitioning routes. (https://github.com/RickWong/react-transmit/issues/4)Bug fixes. Rewrote the example to showcase 3 Transmit components working together.