diff --git a/src/components/connect.tsx b/src/components/connect.tsx index 4137a6d7b..23d4c1828 100644 --- a/src/components/connect.tsx +++ b/src/components/connect.tsx @@ -647,7 +647,11 @@ function connect< const renderIsScheduled = React.useRef(false) const isMounted = React.useRef(false) - const latestSubscriptionCallbackError = React.useRef(undefined) + // TODO: Change this to `React.useRef(undefined)` after upgrading to React 19. + /** + * @todo Change this to `React.useRef(undefined)` after upgrading to React 19. + */ + const latestSubscriptionCallbackError = React.useRef(undefined) useIsomorphicLayoutEffect(() => { isMounted.current = true