3 ms·
Think of how context and useContext probably works.
by postalrat 1y ago
Think of how context and useContext probably works.
- recursive 1y agoEvery fiber has a parent. I suppose the behavior, although possibly not the implementation, is that the ancestry chain is walked up until the nearest context provider is found. That will be the fiber associated with rendering context that provided the context.