-
Notifications
You must be signed in to change notification settings - Fork 554
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
Inject script doesn't work with auto-run feature #2985
Comments
This is awesome, thanks both @johnpryan and @parlough :D! I was playing with dartpad_autorun.webm |
Yeah. I'm not sure how to avoid that 100% of the time without requiring a special flag to indicate not to run the initial script or gist. I might be able to adjust the order a bit and avoid running the initial script if a message was received from the embedder. I'll play around a bit. |
@tugorez - I believe you're experimenting with re-mixing the dartpad UI a bit? Instead of hosting the embedded view in a page, you might also consider forking and modifying the dartpad UI directly? As a Flutter web app, the UI components are reasonably modular, and it should be pretty quick to experiment with. |
There's a timing issue where using the
data-run
/run=true
feature will correctly auto-run, but doesn't run the right code. Instead of running the injected code, it runs whatevermain.dart
was created by default.DartPad probably needs to know that it is waiting on an injected script, and then wait for that code before triggering the auto-run feature.
cc: @parlough @tugorez
The text was updated successfully, but these errors were encountered: