mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2
This commit is contained in:
commit
fe417d50af
4 changed files with 143 additions and 1085 deletions
|
@ -128,6 +128,7 @@ impl EachItem {
|
|||
Comment::new(Cow::Borrowed("<EachItem>")),
|
||||
);
|
||||
|
||||
#[cfg(all(target_arch = "wasm32", feature = "web"))]
|
||||
let document_fragment = {
|
||||
let fragment = crate::document().create_document_fragment();
|
||||
|
||||
|
|
|
@ -21,9 +21,11 @@ use cfg_if::cfg_if;
|
|||
pub use components::*;
|
||||
pub use events::typed as ev;
|
||||
pub use html::*;
|
||||
use leptos_reactive::Scope;
|
||||
pub use logging::*;
|
||||
pub use node_ref::*;
|
||||
pub use logging::*;
|
||||
pub use web_sys;
|
||||
pub use wasm_bindgen;
|
||||
use leptos_reactive::Scope;
|
||||
use smallvec::SmallVec;
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
|
|
|
@ -9,7 +9,6 @@ use syn_rsx::{parse, NodeElement};
|
|||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||
pub(crate) enum Mode {
|
||||
Client,
|
||||
Hydrate,
|
||||
Ssr,
|
||||
}
|
||||
|
||||
|
@ -20,9 +19,7 @@ impl Default for Mode {
|
|||
// for the sake of testing, we need to fall back to `ssr` if no flags are enabled
|
||||
// if you have `hydrate` enabled, you definitely want that rather than `csr`
|
||||
// if you have both `csr` and `ssr` we assume you want the browser
|
||||
if cfg!(feature = "hydrate") {
|
||||
Mode::Hydrate
|
||||
} else if cfg!(feature = "csr") {
|
||||
if cfg!(feature = "hydrate") || cfg!(feature = "csr") || cfg!(feature = "web") {
|
||||
Mode::Client
|
||||
} else {
|
||||
Mode::Ssr
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue