codify "platform" into resolution logic, server-fn/fullstack overhaul (#4596)
overhaul dioxus fullstack using a new implementation of server_fn This PR is a complete rewrite of dioxus fullstack designed to improve compatibility with axum and to fix a number of compilation errors based on feature flag unification plumbing through macros.
This commit is contained in:
1 parent
8421c3aef0
commit
f2b1c6d97f
424 files changed
+17284
-6624
No files matched your search
@@ -1,7 +1,6 @@
|
||||
use dioxus_core::Element;
|
||||
use dioxus_core_macro::rsx;
|
||||
use dioxus_html as dioxus_elements;
|
||||
use dioxus_signals::{GlobalSignal, ReadableExt};
|
||||
|
||||
#[allow(deprecated)]
|
||||
use crate::hooks::use_router;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use dioxus_core::{Element, VNode};
|
||||
use dioxus_core_macro::{rsx, Props};
|
||||
use dioxus_html as dioxus_elements;
|
||||
use dioxus_signals::{GlobalSignal, ReadableExt};
|
||||
|
||||
use tracing::error;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use dioxus_core::{use_hook, Callback, Element};
|
||||
use dioxus_core_macro::{component, Props};
|
||||
use dioxus_history::{provide_history_context, History};
|
||||
use dioxus_signals::Owner;
|
||||
|
||||
use std::rc::Rc;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use dioxus_core_macro::{rsx, Props};
|
||||
use dioxus_html::{
|
||||
self as dioxus_elements, ModifiersInteraction, MountedEvent, MouseEvent, PointerInteraction,
|
||||
};
|
||||
use dioxus_signals::{GlobalSignal, Owner, ReadableExt};
|
||||
|
||||
use tracing::error;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use crate::{provide_router_context, routable::Routable, router_cfg::RouterConfig, Outlet};
|
||||
use dioxus_core::{provide_context, use_hook, Callback, Element};
|
||||
use dioxus_core_macro::{rsx, Props};
|
||||
use dioxus_signals::{GlobalSignal, Owner, ReadableExt};
|
||||
|
||||
/// The props for [`Router`].
|
||||
#[derive(Props)]
|
||||
@@ -43,7 +42,7 @@ pub fn Router<R: Routable + Clone>(props: RouterProps<R>) -> Element {
|
||||
|
||||
#[cfg(feature = "streaming")]
|
||||
dioxus_hooks::use_after_suspense_resolved(|| {
|
||||
dioxus_fullstack_hooks::commit_initial_chunk();
|
||||
dioxus_fullstack_core::commit_initial_chunk();
|
||||
});
|
||||
|
||||
use_hook(|| {
|
||||
|
||||
@@ -953,3 +953,13 @@ impl Display for SegmentType {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// /// Routable is implemented for String to allow stringly-typed apps.
|
||||
// impl Routable for String {
|
||||
// const SITE_MAP: &'static [SiteMapSegment] = &[];
|
||||
|
||||
// #[doc = " Render the route at the given level"]
|
||||
// fn render(&self, _level: usize) -> Element {
|
||||
// unimplemented!("String routes cannot be rendered as components")
|
||||
// }
|
||||
// }
|
||||
Reference in new issue
Block a user