Comments (2)
This is all known and expected React behavior:
- https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-mostly-complete-guide-to-react-rendering-behavior/#component-render-optimization-techniques
- https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-mostly-complete-guide-to-react-rendering-behavior/#context-updates-and-render-optimizations
from react.
Alright, thanks for your time to reply!
tl;dr:
You probably don't have to re-render components right under context providers, 2 ways to approach:
- React.memo()
- render
props.children
(react skips re-rendering components with the same reference)
from react.
Related Issues (20)
- Bug: Infinite loop with useState and useEffect hooks HOT 9
- Bug:
- feature request: Pass HTML tag attributes as single object HOT 8
- Bug: useEffect Hook Does Not Recognize Passed Prop as Function in Child Component HOT 1
- 18.2.0/umd/react.development.js not export use method HOT 1
- Bug: Canary version unexpectedly removes markup rendered by a component in Strict Mode HOT 3
- Bug: onKeyUp Handler fired out of order HOT 2
- Bug: react got runtime error when user breaks the rules of hooks, instead of telling user what to do HOT 4
- Bug: eslint-plugin-react-hooks hangs on function with many conditionals
- Bug: typescript can't determine well useMemo value HOT 3
- Bug: Removal of custom element property sets it to `null` rather than `undefined` HOT 2
- [feat] I hope react supports two instructions r-if and r-for HOT 2
- Name property is not defined for option in the animation color dropdown. HOT 2
- Bug: StrictMode is causing issue when value is calculated using ref value HOT 9
- Updated the README.md file
- [DevTools Bug]: Big Memory Leak HOT 2
- Bug: hot-reload not working with express HOT 3
- Input value leak in chrome browser heap memory HOT 1
- User is unable to select multi color options at once. HOT 3
- Black CSS problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.