Replies: 3 comments
-
You may try : https://mobx.js.org/react-integration.html#callback-components-might-require-observer |
Beta Was this translation helpful? Give feedback.
-
Depends on what you mean by re-render. If you mean preveting parts of your (not react's) rendering logic from re-running, then you can split the rendering logic into multiple If you mean to actually "physically" split the component into smaller ones, then it's not possible. But there is an interesting PoC project that makes individual elements/attributes reactive instead of the whole components: |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your answers guys, I see, I'll look into your links and try to learn it |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I was just wondering while reading through the Optimizing React component rendering if there is a way that Mobx could theoretically split a component into smaller ones, and attaching observers to them so that only smaller parts would be re-rendered? Of course maybe it's not possible but if it is I would really love to help with that
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions