fix hot-reload watcher for client/server (#4200)

* use `@` syntax

* watch the server

* fmt
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-05-25 17:42:12 +01:00
1 parent bb0621fa1b
commit 22e0682f10
6 files changed
+84 -39

No files matched your search

+6 -1
View File
@@ -30,9 +30,14 @@ type ContextList = Vec<Box<dyn Fn() -> Box<dyn Any> + Send + Sync>>;
type BaseComp = fn() -> Element;
/// Launch a fullstack app with the given root component.
pub fn launch(root: BaseComp) -> ! {
launch_cfg(root, vec![], vec![])
}
/// Launch a fullstack app with the given root component, contexts, and config.
#[allow(unused)]
pub fn launch(root: BaseComp, contexts: ContextList, platform_config: Vec<Box<dyn Any>>) -> ! {
pub fn launch_cfg(root: BaseComp, contexts: ContextList, platform_config: Vec<Box<dyn Any>>) -> ! {
#[cfg(not(target_arch = "wasm32"))]
tokio::runtime::Runtime::new()
.unwrap()
+1 -1
View File
@@ -80,7 +80,7 @@ pub use document::ServerDocument;
mod launch;
#[cfg(not(target_arch = "wasm32"))]
pub use launch::launch;
pub use launch::{launch, launch_cfg};
/// Re-export commonly used items
pub mod prelude {