mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
bd19f3bd13
Summary: Returning a shared pointer by const reference in this context is not correct/safe because the object (the ShadowNode) doesn't own the object, so the caller cannot reason about the lifetime (esp. in a multithreaded environment). Reviewed By: mdvacca Differential Revision: D15958737 fbshipit-source-id: 8f03e6530d07d63ece5f955055c5c67c204b8223