Commit Graph

3874 Commits

Author SHA1 Message Date
Álvaro Mondéjar Rubio d9c8d4ff66
fix: `#[component]` macro attributes propagation (#2835) 2024-08-16 20:21:46 -04:00
Chris 621f112f4c
docs: `leptos_router_macro::path` (#2841) 2024-08-16 20:19:38 -04:00
Greg Johnston cfe2341dec
fix: when in browser, resolve relative links relative to current origin (closes #2806) (#2846) 2024-08-16 20:18:59 -04:00
Greg Johnston 5ed2cc9596
docs: provide an error when you try to create identically-named attributes (closes #1692) (#2849) 2024-08-16 20:18:43 -04:00
Greg Johnston 47b07b0143
fix: support navigating to other origins with `use_navigate` (#2847) 2024-08-16 20:18:28 -04:00
Greg Johnston 0793d56648
Merge pull request #2851 from leptos-rs/2850
Fix nested routing/related issues
2024-08-16 20:17:42 -04:00
Greg Johnston 2dde9738b2 fix: unmount meta tags when state is dropped, because parents won't unmount them (closes #2832) 2024-08-16 17:51:37 -04:00
Greg Johnston 1b276e1e02 Revert "fix: run unmount logic for element children (closes #2832) (#2834)"
This reverts commit 951f4a73ee.
2024-08-16 17:43:55 -04:00
Greg Johnston 9771619b0d
tests: add regression test for #2569 (#2848) 2024-08-16 16:53:00 -04:00
Greg Johnston 382a36406c chore: add crate info to router macro 2024-08-14 20:51:29 -04:00
Greg Johnston a898d3f2f7 beta2 release 2024-08-14 20:13:14 -04:00
Greg Johnston 951f4a73ee
fix: run unmount logic for element children (closes #2832) (#2834) 2024-08-14 19:59:54 -04:00
Greg Johnston 2a26a648ba
examples: fix/update GTK example, and remove web parallels (#2839) 2024-08-14 19:47:33 -04:00
Saber Haj Rabiee 66d7cb5d12
feat: add `memo!` macro (closes #2708) (#2826) 2024-08-14 06:14:17 -07:00
Chris aa49ad760b
feat: `StoredValue::default` (#2818) 2024-08-13 21:20:10 -04:00
Álvaro Mondéjar Rubio 3469e9335c
Provide several deprecated functions (#2831) 2024-08-13 21:19:52 -04:00
benwis 62408d9202 Run cargo fmt 2024-08-13 17:10:58 -07:00
Saber Haj Rabiee db1c15f4e4
fix: fix `web-sys` warnings in `server_fn` (#2828)
* fix: fix web-sys warnings in server_fn

* fix: update web-sys to 0.3.70

* fix: web-sys clipboard api in 0.3.70
2024-08-13 15:46:34 -07:00
Álvaro Mondéjar Rubio 3f751551a8
feat: provide deprecated `create_memo` (#2825) 2024-08-13 15:43:17 -07:00
Álvaro Mondéjar Rubio 2470036f57
feat: provide deprecated `create_rw_signal` (#2824) 2024-08-13 15:42:47 -07:00
Saber Haj Rabiee e01dfbf497
fix: update to wasm-bindgen 0.2.93 (#2827) 2024-08-13 15:21:57 -07:00
Saber Haj Rabiee 49c1661f92
fix: exclude projects from workspace (#2819) 2024-08-13 14:51:59 -07:00
Chris b9dfd9a5ae
docs: `StoredValue` methods and examples for 0.7 (#2817) 2024-08-13 14:38:07 -07:00
Saber Haj Rabiee 17a150b3bf
fix: increase MSRV to 1.76 (#2829) 2024-08-13 14:31:22 -07:00
Rakshith Ravi c860f524ad
Add 0.7 warning to README (#2823) 2024-08-13 10:42:13 -04:00
mahmoud-eltahawy 20af4928b2
chore: use workspace edition for examples and crates (#2816) 2024-08-12 19:25:47 -04:00
Greg Johnston 7b62ad44d2
feat: restore hot reloading for 0.7 (#2775) 2024-08-12 16:11:30 -04:00
Greg Johnston 5657abc07d
Merge pull request #2809 from leptos-rs/callback
Callback changes
2024-08-12 16:11:10 -04:00
Greg Johnston 9fc351ceac chore: remove unused import 2024-08-12 08:09:12 -04:00
Greg Johnston 893d47f1c5
feat: add missing server fn redirect hook to router (#2815) 2024-08-12 08:07:45 -04:00
Greg Johnston 3c2a2304e4 change: rename `Callable::call()` to `Callable::run()` to avoid warnings about name collision with `Fn()` 2024-08-12 07:48:22 -04:00
Greg Johnston 3de4b7b982 fix: impl Copy for UnsyncCallback 2024-08-12 07:45:29 -04:00
Greg Johnston 36957cb569 change: impl `From<F: Fn>` for all callbacks, rather than implement `Fn` traits on them in nightly (closes #2041, #2142) 2024-08-12 07:45:28 -04:00
Greg Johnston 27dbadb7d2
fix: allow generic parameters for directive functions (closes #2808) (#2812) 2024-08-11 20:37:57 -04:00
Greg Johnston 84590b98ed
Merge pull request #2814 from leptos-rs/2719
Provide parent route params to children
2024-08-11 18:36:15 -04:00
Greg Johnston 0222182286 fix: provide parent params to children (closes #2719) 2024-08-11 17:20:25 -04:00
Greg Johnston 7ed4d08dab feat: From<ArcRwSignal<_>> for ArcMemo<_> 2024-08-11 17:19:35 -04:00
Greg Johnston 4fa2e58551
fix: properly resolve nested relative routes with multiple parents (closes #2720) (#2797) 2024-08-11 13:21:22 -04:00
Greg Johnston 5fe58369f5
fix: only implement global attributes on HtmlElement, not on all renderable types, to improve autocomplete (#2811) 2024-08-11 13:21:08 -04:00
Tommy Yu 10860ebb1e
doc: more details on how redirect works (closes #2789) (#2796) 2024-08-11 07:11:05 -04:00
Greg Johnston 887eb99cf6 chore: cargo fmt 2024-08-10 20:31:28 -04:00
Tommy Yu 9f99571b28
fix: a more robust `aria-current="page"` algorithm for `A` (#2770) 2024-08-10 20:31:10 -04:00
Saber Haj Rabiee b3e2040ec9
chore: upgrade dependencies (#2765) 2024-08-10 20:01:41 -04:00
Greg Johnston 693861434c
Merge pull request #2799 from leptos-rs/2798
fix: ProtectedRoute calling view multiple times during server rendering
2024-08-09 10:27:10 -04:00
Greg Johnston d1248d3faf
fix: hydration for attributes with `Option<_>` (closes #2793) (#2794) 2024-08-08 14:11:26 -04:00
Greg Johnston f1fae63064 fix: only run Suspense on the condition in ProtectedRoute (closes #2798) 2024-08-08 13:57:58 -04:00
Greg Johnston f7053ac960 feat: add Unsuspend as a way to opt out of Suspense in a section of the tree 2024-08-08 13:56:02 -04:00
Greg Johnston 8670365594
fix: support complex struct form submits without JS (closes #2790) (#2792) 2024-08-07 11:10:59 -04:00
Alicia Garcia-Raboso e0cc6fd7b9
fix: correctly report whether a stored_value is disposed (#2791) 2024-08-07 09:19:01 -04:00
Greg Johnston 84457b45ff
fix: introduce more intuitive/useful behavior for `new_with_initial` (closes #2787) (#2788) 2024-08-07 09:14:22 -04:00