Hi, I want to send props from the server to Transmit (I'm using the react-isomorphic-starterkit).
Si I have this on server:
renderProps.auth = 'authstring'
Transmit.renderToString(ReactRouter.RoutingContext, renderProps).then(({reactString, reactData}) => {
...
});
And then in my component definition, I have the following:
export default Transmit.createContainer(AppWrapper, {
initialVariables: { },
fragments: {
doSomething: () => {
//Want to read my authstring here
}
}
});
Hi, I want to send props from the server to Transmit (I'm using the react-isomorphic-starterkit).
Si I have this on server:
And then in my component definition, I have the following: