react-frontload
react-frontload copied to clipboard
Is frontload compatible with renderToNodeStream?
Hello!
First of all thank you for this amazing library. We've been using it for a while, since the beginning of the project two-three years ago. Right now we're in the midst of trying to improve the SSR experience and we were trying to move from the renderToString to the renderToNodeStream. While the first one works as expected and seems to load all the data and send the HTML correctly down, it seems that the second is not "fetching"/calling the frontload in our components.
Any ideas as to why that might be or what can we do to solve the issue? Or is it a limitation of the library?
For a little bit of context, we're using:
v1of Frontload- We rely heavily on class components still, redux, thunk, etc.
@davnicwil just making sure that this issue isn't getting buried 💪
it seems like hook isn't called with when calling renderToNodeStream. I've also run into the same issue. Looks like it won't work for the stream case
I would also be interested to see an example of react-frontload used in conjunction with renderToNodeStream.