Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Think of how context and useContext probably works.


Every 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: