Skip to content

Commit

Permalink
Fix type issue related to latestSubscriptionCallbackError
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Apr 30, 2024
1 parent ab027bc commit 1916b0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,11 @@ function connect<
const renderIsScheduled = React.useRef(false)
const isMounted = React.useRef(false)

const latestSubscriptionCallbackError = React.useRef<Error>(undefined)
// TODO: Change this to `React.useRef<Error>(undefined)` after upgrading to React 19.
/**
* @todo Change this to `React.useRef<Error>(undefined)` after upgrading to React 19.
*/
const latestSubscriptionCallbackError = React.useRef<Error | undefined>(undefined)

useIsomorphicLayoutEffect(() => {
isMounted.current = true
Expand Down

0 comments on commit 1916b0d

Please sign in to comment.