-
Notifications
You must be signed in to change notification settings - Fork 19
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
refs are not resolved #55
Comments
Effects run asynchronously, so this is expected behavior and not an error. In order to check the ref, you need to await until the button can be found in the DOM. |
But thats exactly why |
I just tested it. I can see the console output: |
I apologize if this issue is known, or if it does not belong to this repo, but I could not find any answer anywhere, including ChatGPT.
Consider this dummy component:
When running this component, the button element will be printed on the console, however when running the following test the ref is undefined
Any ideas?
The text was updated successfully, but these errors were encountered: