Daniel Grant
Daniel Grant
It is non-standard but there is definitely general demand for a feature like this. For example, the apollo client currently traverses a react tree before every render to resolve data...
@divmain @abritinthebay How about allowing a visitor function (something similar to https://github.com/ctrlplusb/react-tree-walker) to be attached to the renderer? ```js render() .attachVisitor(function visitor(element, instance, context) { if (instance.getInitialProps) { // returning...
Nice! Thanks for sharing @elierotenberg. > I think separating the preparation step from the rendering step is usually a good idea This means traversing the React tree twice. In my...
@gaearon Thanks for the clarification! Is a server side renderer that is capable of doing async work during rendering likely to fall on the React roadmap in the future?
You can add to your `remix.config.js`: ```js { serverDependenciesToBundle: [/.*/] } ``` This will bundle ESM modules.
Ejecting is certainly an option, but best avoided where possible. Especially in common use-cases like this, where other users would also benefit from it being implemented in core.
Yes, I'm aware it's not possible right now. I'm suggesting it be a feature of CRE and am happy to create a PR if the author would like to see...