Skip to content

Inject script doesn't work with auto-run feature #2985

Open
@johnpryan

Description

@johnpryan

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.

cc: @parlough @tugorez

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requesttype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions