electrode-react-ssr-caching
electrode-react-ssr-caching copied to clipboard
React 16+ support?
Curious if any work has been done to add SSR cache support for React v.16+?
I've created a proof of concept (see: facebook/react#11670) to support SSR plugins with react 16, but maybe alternative solution(s) already exist?
Thanks, Adam.
we are busy updating all our internal components and apps to React 16 in order to take advantage of the new features and the rewritten SSR engine. We will evaluate if component caching still offers enough benefit with React 16 and if it makes sense to update this module.
@jchip I am curious what your findings are. We are seeing React 15 with SSR caching significantly faster than React 16 after the first render. ~15ms renders to ~25ms renders and increases CPU usage so our throughput on the same instances is lower.
any updates on this?
Checking back in on this. The partial caching is a must have for good SSR. I am looking at starting a new project in React 15 to use this library would be great to know if there is a plan for 16 support.
Any update on this one?
@nakedcity Tried installing react-dom-core and changing the imports in the ssrCaching.js works const ReactCompositeComponent = require("react-dom-core/lib/ReactCompositeComponent"); const DOMPropertyOperations = require("react-dom-core/lib/DOMPropertyOperations"); runs without error but the Profile Data is not capturing Can anyone help on this.?
This won't work using react-dom-core since react-dom 16 not using this module to intercept the rendering hence the intercept won't ever get fired.
@dtuyenle that helps thanks