react-frontload icon indicating copy to clipboard operation
react-frontload copied to clipboard

Is frontload compatible with renderToNodeStream?

Open bjufre opened this issue 4 years ago • 4 comments

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:

  • v1 of Frontload
  • We rely heavily on class components still, redux, thunk, etc.

bjufre avatar Aug 23 '21 12:08 bjufre

@davnicwil just making sure that this issue isn't getting buried 💪

bjufre avatar Sep 01 '21 07:09 bjufre

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

tmhao2005 avatar Nov 17 '21 08:11 tmhao2005

I would also be interested to see an example of react-frontload used in conjunction with renderToNodeStream.

igorshmukler avatar Dec 09 '21 22:12 igorshmukler