Skip to content

Commit e0b21a0

Browse files
committed
Update index.js
1 parent c9578b9 commit e0b21a0

File tree

1 file changed

+6
-2
lines changed
  • src/components/PassingDataSimulator

1 file changed

+6
-2
lines changed

src/components/PassingDataSimulator/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export default function PassingDataSimulator({
7070
setCurrentLine(8); // $result = yield activity(...)
7171
await delay(1000);
7272

73-
// Step 3: Switch to activity
73+
// Step 3: Switch to activity - clear line first to prevent flash
74+
setCurrentLine(-1);
75+
await delay(50); // Small delay to ensure render completes
7476
setCurrentFile('activity');
7577
setCurrentLine(5); // public function execute($name)
7678
await delay(800);
@@ -79,7 +81,9 @@ export default function PassingDataSimulator({
7981
setCurrentLine(7); // return "Hello, {$name}!";
8082
await delay(1000);
8183

82-
// Step 5: Back to workflow
84+
// Step 5: Back to workflow - clear line first to prevent flash
85+
setCurrentLine(-1);
86+
await delay(50); // Small delay to ensure render completes
8387
setCurrentFile('workflow');
8488
setCurrentLine(10); // return $result;
8589
await delay(800);

0 commit comments

Comments
 (0)