relay icon indicating copy to clipboard operation
relay copied to clipboard

Library is incompatible with React 19 due to use of `SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`

Open short-dsb opened this issue 1 month ago • 0 comments

Our organization is attempting to use the React 19 beta for our internal tools to get ahead of the upgrade for production. However, we encountered a blocking issue with react-relay.

The loadQuery method uses __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED which was renamed in React 19 to __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.

This results in runtime and build issues when attempting to use react-relay, like this one:

Attempted import error: 'SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' is not exported from 'react' (imported as 'r').

short-dsb avatar May 02 '24 17:05 short-dsb