Browse Source

fix outlet panic

Adrian Wannenmacher 2 năm trước cách đây
mục cha
commit
780786c520
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/router/src/components/outlet.rs

+ 1 - 1
packages/router/src/components/outlet.rs

@@ -56,6 +56,6 @@ pub fn Outlet(cx: Scope<OutletProps>) -> Element {
             let X = content.0;
             rsx! { X { } }
         }
-        None => rsx! { Fragment { } },
+        None => rsx! { div { } },
     })
 }