Skip to content

Fix getRectForRef - current not set error #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

evelant
Copy link

@evelant evelant commented May 8, 2025

fixes #153 error filing people's logs. It is valid when current is not set because of the timeout used, the component may have unmounted.

…ing logs. It is valid when current is not set because of the timeout used, the component may have unmounted.
@AdamGerthel
Copy link
Collaborator

AdamGerthel commented May 9, 2025

I'm seeing a lot of unrelated changes. Could you clean up the PR to only include the relevant changes?

It looks like you're catching the error and then returning an incorrect Rect value. Could you explain how this solves the problem?

Isn't the solution to this whole problem that the component needs to clear the timeout when it unmounts? In other words, the timeout needs to be stored in a React.ref which is then called through clearTimeout in a useEffect return function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: getRectForRef - current is not set (Unhandled Promise Rejection) iOS
2 participants