Commit Graph

595 Commits

Author SHA1 Message Date
Greg Johnston b0f745f4a9 fix: escape `</script>` and other HTML tags in serialized resources 2023-03-28 20:34:54 -04:00
Igor Shevchenko 98a9ec8335
chore(docs): fix a few typos (#756) 2023-03-27 20:06:34 -04:00
jquesada2016 5329561687
feat: add `is_mounted` and `dyn_classes` (#714) 2023-03-27 19:03:59 -04:00
Álvaro Mondéjar 509223ab2e
chore: Upgrade console_log to stable (#724) 2023-03-22 18:21:53 -04:00
Greg Johnston 665b0b8ed2
chore: make `wasm-bindgen` dependency optional in `leptos_reactive` (#723) 2023-03-22 17:56:52 -04:00
Greg Johnston 875d2d5a3a chore: handle unbounded_send warnings 2023-03-20 09:33:58 -04:00
Greg Johnston 2faddd85cb
feat: add `set_interval_with_handle` and deprecate `set_interval` (#709) 2023-03-19 16:45:22 -04:00
martin frances ddd463748d
clippy: less .clone() calls, simpler pointer passing. (#707) 2023-03-19 15:30:12 -04:00
Greg Johnston 08c56f7d6c
feat: add a `debounce` helper for event listeners (#691) 2023-03-19 07:10:56 -04:00
Elliot Waite e1ba26b62c
feat: add `request_animation_frame_with_handle` and `request_idle_callback_with_handle` (#698) 2023-03-18 19:09:36 -04:00
Greg Johnston 309f0bf826
fix: ignore view markers in DynChild hydration (closes issue #697) (#703) 2023-03-18 19:01:56 -04:00
Greg Johnston 1698ffa7db
fix issues in release mode (closes #700) (#701) 2023-03-18 11:04:06 -04:00
Greg Johnston 3bd52fcc9d
fix: hydration errors with `<Suspense/>` inside components in SSR mode (#688) 2023-03-17 12:46:04 -04:00
Greg Johnston 55f9081465
fix: allow multiple `<Suspense/>` on same page during in-order or async rendering (#687) 2023-03-17 12:05:36 -04:00
Brett Etter a8a9c575b5
Added `IntoView` for `ReadSignal` and `RwSignal` in the `stable` feature. (#677) 2023-03-15 16:40:22 -04:00
Greg Johnston b8f79a7e56
fix: suppress spurious hydration warnings for tags in `leptos_meta` (#684) 2023-03-14 14:17:23 -04:00
Greg Johnston 38daaf3b72
chore: apply `cargo machete` systematically (#671) 2023-03-13 10:16:20 -04:00
Greg Johnston 591212a56a
feat: add fragment support for hot reloading and fix some stuff (#659) 2023-03-11 07:21:37 -05:00
Greg Johnston c782017578
feat: impl `IntoView` for `&Fragment` (#655) 2023-03-10 09:43:03 -05:00
Pikhosh d291cdb968
fix: show console error instead warning for `error!` (#654) 2023-03-10 09:42:44 -05:00
ealmloff 29fb1842a5
feat: make server functions work outside of WASM (#643) 2023-03-09 18:03:57 -05:00
Greg Johnston bb0324fd48
fix: custom events (closes issue #641) (#642) 2023-03-07 14:00:48 -05:00
WafflePersonThing 34aa0e014b
fix: added missing attributes of events that don't bubble (#625)
references used:
- https://developer.mozilla.org/en-US/docs/Web/API/
- web archives of the above before jun 11th 2022, relevant: https://github.com/mdn/content/issues/19590
2023-03-04 11:30:12 -05:00
Greg Johnston 55ce805b60
feat: hot reloading support for `cargo-leptos` (#592) 2023-03-04 09:04:22 -05:00
Greg Johnston 02e2948e00
fix: suppress warnings caused by resource loading in `generate_route_list` (closes #582) (#621) 2023-03-03 13:20:38 -05:00
Greg Johnston c8e6d18139
feat: allow multiple class names in `view!` macro `class = ` (closes #612) (#614) 2023-03-03 10:44:15 -05:00
Greg Johnston f46084723a
fix: memory leak in streaming SSR (closes issue #590) (#601) 2023-03-01 20:54:28 -05:00
Greg Johnston abef12279b fix: don't re-set attributes found in HTML during hydration (closes #597) 2023-02-28 19:56:13 -05:00
Greg Johnston 04eae63e39
examples: include missing examples in CI (#598) 2023-02-28 15:33:02 -05:00
Greg Johnston 1b2a0fe2ad
fix: `mouseenter` and `mouseleave` do not bubble (#593) 2023-02-28 09:39:52 -05:00
Greg Johnston 34f7b90177
perf: improvements to event delegation and element creation in `<For/>` (#579) 2023-02-26 08:31:03 -05:00
Greg Johnston 05b5b25c0e
fixes issue #565 (#566) 2023-02-22 09:20:33 -05:00
Ikko Eltociear Ashimine a2eaf9b3ee
fix: typo in hydration docs(#552)
identifer -> identifier
2023-02-20 07:09:33 -05:00
Chrislearn Young 4032bfc210
fix: document docs typo (#553) 2023-02-20 07:08:51 -05:00
Greg Johnston 6c31d09eb2
revert PR #538 (#544) 2023-02-18 18:39:08 -05:00
jquesada2016 487dba90d8
fix: off-by-one error in `<For/>` (closes #533) (#538) 2023-02-18 14:57:14 -05:00
jquesada2016 f2f52b2533
change: move signal method implementations into traits in signal prelude (#490) 2023-02-18 07:30:03 -05:00
Sean Aye 46d6e3f78c
fix compile of leptos dom (#535) 2023-02-17 18:25:58 -05:00
Greg Johnston 586f524015
feature: in-order streaming and `async` rendering (#496) 2023-02-17 17:31:32 -05:00
Greg Johnston 79781ec20c Fix test import location 2023-02-17 16:18:22 -05:00
Greg Johnston 0071a48b8a
feature: reintroduce limited template-node cloning w/ `template` macro (#526) 2023-02-16 07:02:01 -05:00
Greg Johnston 00a796d204
change: tweak API of `Errors` and implement `IntoIter` (#522) 2023-02-15 14:03:16 -05:00
Greg Johnston 0a534bd7fd
Reexport `web-sys` event types in `leptos::ev` to make it easier to type handlers (#521) 2023-02-13 20:45:46 -05:00
martin frances e732a4952b
leptos_dom erros.rs remove<E>() does not need to be generic. (#516)
* leptos_dom erros.rs remove<E>() does not need to be generic.

* fixed up errors.remove().
2023-02-13 20:25:11 -05:00
Greg Johnston 6dd3be75d1
fix: import in `leptos_dom` and add Wasm build to CI for regressions (#510) 2023-02-12 18:58:57 -05:00
g-re-g 51e11e756a
Typos and a small cleanup (#509) 2023-02-12 18:11:31 -05:00
Greg Johnston 1dbcfe2861
change: reorganize module exports and reexports (#503) 2023-02-12 17:04:36 -05:00
Greg Johnston 6bab4ad966
apply new formatting everywhere (#502) 2023-02-11 14:30:06 -05:00
jquesada2016 d4648da5c6
chore: add workspace `rustfmt.tml` (#483) 2023-02-11 14:25:55 -05:00
Greg Johnston c24874d9c8
change: add `Scope` to view function in `<For/>` to avoid memory "leak" (#492) 2023-02-08 20:28:04 -05:00