Skip to content

Commit

Permalink
fix: toasts (#3333)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp authored Dec 11, 2024
1 parent e598cfe commit 49caa2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/serve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
runner.file_map.force_rebuild();

// Tell the server to show a loading page for any new requests
devserver.send_reload_start().await;
devserver.start_build().await;
} else {
tracing::warn!(
Expand Down Expand Up @@ -227,6 +228,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {

builder.rebuild(args.build_arguments.clone());
runner.file_map.force_rebuild();
devserver.send_reload_start().await;
devserver.start_build().await
}

Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/serve/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ impl WebServer {
self.build_status.set(Status::BuildError {
error: ansi_to_html::convert(&error).unwrap_or(error),
});
self.send_reload_failed().await;
self.send_build_status().await;
}
}
Expand Down

0 comments on commit 49caa2b

Please sign in to comment.