You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 whatever main.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.
The text was updated successfully, but these errors were encountered:
johnpryan
added
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
P1
A high priority bug; for example, a single project is unusable or has many test failures
labels
Jun 6, 2024
I was playing with data-run="true" and found that although it actually auto renders the UI it seems I'm still able to see the default program for a second.
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.
parlough
added
P3
A lower priority bug or feature request
and removed
P1
A high priority bug; for example, a single project is unusable or has many test failures
labels
Jun 13, 2024
@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: