Skip to content
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

Follow up functional refs #3698

Closed
1 task done
JoviDeCroock opened this issue Aug 28, 2022 · 0 comments · Fixed by #4058
Closed
1 task done

Follow up functional refs #3698

JoviDeCroock opened this issue Aug 28, 2022 · 0 comments · Fixed by #4058

Comments

@JoviDeCroock
Copy link
Member

JoviDeCroock commented Aug 28, 2022

  • Check if updating to the latest Preact version resolves the issue

Describe the bug

As a follow up to #3695 and #3696 - in the same reproduction if we replace the ref with a function we are calling it in the wrong order. We first call it with the div and then with the unmounted null.

To Reproduce

I have already added a test which shows the issue

Expected behavior

We expect the unmounted element to cleanup the ref and then the refto be called with the new element.

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 a pull request may close this issue.

1 participant