brillout / react-streaming

React Streaming. Full-fledged & Easy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest version removes renderToPipeableStream option

muteor opened this issue · comments

I was using the renderToPipeableStream option like this:

renderToPipeableStream(children, options) {
        const s = renderToPipeableStream(children, {
          ...options,
          nonce: response.locals.cspNonce,
          bootstrapScriptContent: bootstrapScripts,
        });

        setTimeout(() => {
          s.abort();
          logger.log('Hit rendering timeout, will abort and let client render');
        }, abortTimeout);
        return s;
      },

Is there an equivalent with that option removed?

commented

I'd rather have options to be passed through, would that work for you? Up for a PR?