Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2

This commit is contained in:
Jose Quesada 2022-12-04 17:22:24 -06:00
commit fe417d50af
4 changed files with 143 additions and 1085 deletions

View file

@ -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();

View file

@ -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,

View file

@ -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