You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the undocumented property React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED which holds some interesting insights and can be useful in some cases.
I'm developing React libraries.
is it safe to use in development?
for example using React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type.displayName I could warn the user the name of the component that consumed a custom hook without wrapping it with required context.
is it safe to use in production? for example this use case.
thank you.
poiuytrez, mdgaziur, harish-sethuraman, danieltroger, sairajchouhan and 14 morechovanecadam, acornellier, angeloanan, macabeus, kerocode and 171 moreShaptice-casteMatKurianski, ImNimboss and smiba