Upgrades to React 19.2 (#39330)

This commit is contained in:
Echo authored and GitHub committed 2026-06-17 09:12:55 +00:00
1 parent b777936bdf
commit ccd6fb92f9
10 files changed
+90 -188

No files matched your search

@@ -18,7 +18,7 @@ export const WithOptionalRouterPropTypes = {
export interface OptionalRouterProps {
ref: unknown;
wrappedComponentRef: unknown;
wrappedComponentRef?: string | ((...args: unknown[]) => unknown) | object;
}
// This is copied from https://github.com/remix-run/react-router/blob/v5.3.4/packages/react-router/modules/withRouter.js
@@ -54,14 +54,6 @@ export function withOptionalRouter<
C.displayName = displayName;
C.WrappedComponent = Component;
C.propTypes = {
...Component.propTypes,
wrappedComponentRef: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
PropTypes.object,
]),
};
return hoistStatics(C, Component);
}