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?
I'm trying to update our NPM packages, and I'm having difficulty getting Transmit to work again.
In our
server.js
file, in ouronPreResponse
callback function, we're invoking:Within the callback function for
renderToString
, the parametercontent
is an object with two props,reactString
andreactData
.content.reactString
is the HTML to render (as expected). Butcontent.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.