React 所有者栈堆
备注
ReactSharedInternals()由 ReactSharedInternals 实现
export function captureOwnerStack(): null | string {
if (__DEV__) {
const getCurrentStack = ReactSharedInternals.getCurrentStack;
if (getCurrentStack === null) {
return null;
}
// The current stack will be the owner stack which it is always here.
return getCurrentStack();
}
return null;
}