VTable icon indicating copy to clipboard operation
VTable copied to clipboard

What about react 19.1 support?

Open ar1en opened this issue 9 months ago • 0 comments

After updating to React 19, I get the following error: "Cannot read properties of undefined (reading 'ReactCurrentOwner')."

The thing is, starting with React 19, reactSharedInternals has been made more internal and less accessible. As a temporary workaround to maintain compatibility, you can use the following hacks: var ReactCurrentDispatcher = React.REACT_DEVTOOLS_GLOBAL_HOOK?._reactSharedInternals?.ReactCurrentDispatcher; var ReactCurrentOwner = React.REACT_DEVTOOLS_GLOBAL_HOOK?._reactSharedInternals?.ReactCurrentOwner; var ReactDebugCurrentFrame = React.REACT_DEVTOOLS_GLOBAL_HOOK?._reactSharedInternals?.ReactDebugCurrentFrame; var ReactCurrentBatchConfig = React.REACT_DEVTOOLS_GLOBAL_HOOK?._reactSharedInternals?.ReactCurrentBatchConfig; var ReactCurrentActQueue = React.REACT_DEVTOOLS_GLOBAL_HOOK?._reactSharedInternals?.ReactCurrentActQueue;

Please add support for React 19.

ar1en avatar Apr 12 '25 12:04 ar1en