From 1916b0d558fe541455b2690b5ce9ccf8dc2afa1e Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Mon, 29 Apr 2024 22:59:22 -0500 Subject: [PATCH] Fix type issue related to `latestSubscriptionCallbackError` --- src/components/connect.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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