Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

content.reactData in renderToString callback is an array not an object? #62

Open
ghost opened this issue Mar 4, 2016 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Mar 4, 2016

I'm trying to update our NPM packages, and I'm having difficulty getting Transmit to work again.

In our server.js file, in our onPreResponse callback function, we're invoking:

Transmit.renderToString(App, props).then(function (content) { 
  /* Render app with content's React string and data. */ 
}).catch(function (err) { /* Handle error. */ });

Within the callback function for renderToString, the parameter content is an object with two props, reactString and reactData.

content.reactString is the HTML to render (as expected). But content.reactData is an empty array (whereas I'm expecting an object with the data for our app).

Would you have ideas as to why reactData would be an empty array rather than a populated object?

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants