-
Notifications
You must be signed in to change notification settings - Fork 4
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
"Target element not found!" false positives #72
Comments
ps. this extension slaps 👑 💯 😻 |
Hi @ghiculescu,
thank you very much!! Thats a bug that I havn't seen before but totally makes sense when I think about it.
100% correct. We use the Not quite sure how to fix this yet but I will look into it.
I don't really like 2. and 3. to be honest. |
You could try adding an after-render event here https://github.com/hotwired/turbo/blob/f88bfe45ed44abb6ea9140a8ba138dfe68aa2730/src/elements/stream_element.js#L49. That would be the best solution! Other than that I think option 3 makes the most sense, presumably if you |
Let's say you have a stream response that does two things:
You'll get a warning like this:
The error is incorrect because the first stream adds the element, so when the second stream runs the element does exist.
I think that's happening because
consoleLogTurboStream
runs before any of the streams are rendered, but I don't really know how to debug extensions in devtools so can't confirm.The text was updated successfully, but these errors were encountered: