fix dioxus ssr

This commit is contained in:
Evan Almloff committed 2024-01-10 17:57:15 -06:00
1 parent dc58212508
commit 4a1a00b0f0
27 files changed
+143 -141

No files matched your search

+3 -3
View File
@@ -27,10 +27,10 @@ impl ScopeId {
pub const ROOT: ScopeId = ScopeId(0);
}
/// A component's state separate from its props.
/// A component's rendered state.
///
/// This struct exists to provide a common interface for all scopes without relying on generics.
pub(crate) struct ScopeState {
/// This state erases the type of the component's props. It is used to store the state of a component in the runtime.
pub struct ScopeState {
pub(crate) runtime: Rc<Runtime>,
pub(crate) context_id: ScopeId,