From 1ce1127b885bbc9389e69d57a305114d378e8ff8 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sat, 6 Jan 2024 19:35:50 -0500 Subject: [PATCH] add missing server fn registration --- integrations/actix/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integrations/actix/src/lib.rs b/integrations/actix/src/lib.rs index 7aaf0ade72..e49c85c50f 100644 --- a/integrations/actix/src/lib.rs +++ b/integrations/actix/src/lib.rs @@ -1357,6 +1357,14 @@ impl LeptosRoutes for &mut ServiceConfig { ); } } + + // register server functions + for (path, _) in server_fn::actix::server_fn_paths() { + let additional_context = additional_context.clone(); + let handler = handle_server_fns_with_context(additional_context); + router = router.route(path, handler); + } + router } }