Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Sep 27, 2024
1 parent ccc6dc1 commit 320611e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/haz3lweb/Main.re
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ let app =
~default_model=Model.load(Model.blank),
);

/* This subcomponent is used to run an effect once when the app starts up,
After the first draw */
let on_startup = effect => {
let%sub startup_completed = Bonsai.toggle'(~default_model=false);
let%sub after_display = {
Expand All @@ -74,7 +76,7 @@ let on_startup = effect => {
| {state: true, _} => Bonsai.Computation.return(Ui_effect.Ignore)
};
};
Bonsai.Edge.lifecycle(~after_display, ());
Bonsai.Edge.after_display(after_display);
};

let view = {
Expand Down

0 comments on commit 320611e

Please sign in to comment.