Commit Graph

162 Commits

Author SHA1 Message Date
Greg Johnston 93e6456e19 fix: require `Suspend::new()` to ensure the `Future` is properly scoped at creation time, not at render time 2024-08-01 19:42:51 -04:00
Greg Johnston 62cb361031 chore: clippy 2024-08-01 19:42:50 -04:00
Greg Johnston 6590749956 docs: initial work on porting docs from 0.6 to 0.7 2024-08-01 19:42:50 -04:00
Greg Johnston 9536480739 feat: use codee for shared ser-de codexes with leptos-use (and more possibilities in future) 2024-08-01 19:42:50 -04:00
Greg Johnston 5d3a1752c4 chore: remove unused dependencies 2024-08-01 19:42:50 -04:00
Greg Johnston 0cf3113812 feat: local resources with .await 2024-08-01 19:42:50 -04:00
Greg Johnston 87f9fa23d5 chore: `cfg` warnings 2024-08-01 19:42:50 -04:00
Greg Johnston d7ca969848 blocking resources 2024-08-01 19:42:50 -04:00
Greg Johnston 180511e9bb fix: update imports and methods 2024-08-01 19:42:50 -04:00
Greg Johnston 2ccf5e99a9 Revert "lazy Future construction for AsyncDerived"
This reverts commit 9e84e1f57c.
2024-08-01 19:42:50 -04:00
Greg Johnston da045f7358 un-break circular dependency 2024-08-01 19:42:50 -04:00
Greg Johnston 3c9c5aaf83 chore: clippy 2024-08-01 19:42:21 -04:00
Greg Johnston e4d25608df add trait impls and encodings for SharedValue 2024-08-01 19:42:21 -04:00
Greg Johnston bd1601e892 default to SerdeJson encoding for resources, use new_str() for Str encoding 2024-08-01 19:42:21 -04:00
Greg Johnston 602ac60a85 feat: synchronous serialized values with SharedValue 2024-08-01 19:42:21 -04:00
Greg Johnston 0d867ba016 fix: correctly escape text nodes, except in script/style tags 2024-08-01 19:42:21 -04:00
Greg Johnston 36272a0b1b Revert "fix: constrain reactive rendering to Fn(), because using dry_resolve() for Suspense requires idempotent render functions so that they can be called once (to register resources) and called a second time to resolve"
This reverts commit 7ec5c77ba3e8f45bae04a7661a56741f95125adb.
2024-08-01 19:42:20 -04:00
Greg Johnston e0f98dc0fd fix: constrain reactive rendering to Fn(), because using dry_resolve() for Suspense requires idempotent render functions so that they can be called once (to register resources) and called a second time to resolve 2024-08-01 19:42:20 -04:00
Greg Johnston 949f43d145 fix: Clone for ArcResource and default to SerdeJson for Resource 2024-08-01 19:41:55 -04:00
Greg Johnston 3c39674622 refactor to allow rendering Resource directly in view 2024-08-01 19:41:27 -04:00
Greg Johnston bae79e2b2c add ServerAction error handling for any error type (closes #2325) 2024-08-01 19:41:27 -04:00
Greg Johnston 14b7073863 feat: add `.by_ref()` to create a `Future` from an `AsyncDerived` (etc.) that takes a reference, rather than cloning 2024-08-01 19:41:12 -04:00
Greg Johnston 9666c9c0c5 chore: clear up... a few warnings 2024-08-01 19:41:12 -04:00
Greg Johnston 846ff2fefb feat: return an async guard from .await rather than cloning the value every time 2024-08-01 19:41:12 -04:00
Greg Johnston ce5738d7c4 feat: return Option from AsyncDerived.get() instead of AsyncState 2024-08-01 19:41:11 -04:00
Greg Johnston 0d47399424 restore hydration feature for some of its feature-gating benefits for Resource deserialization 2024-08-01 19:41:11 -04:00
Greg Johnston 961bf89a8b lazy Future construction for AsyncDerived 2024-08-01 19:41:11 -04:00
Greg Johnston d360cc280f support Resource in CSR for backward-compat 2024-08-01 19:41:11 -04:00
Greg Johnston 2470637b0b SSR optimizations for binary size, and flat router 2024-08-01 19:40:25 -04:00
Greg Johnston 72e97047a5 add MultiAction/ServerMultiAction 2024-08-01 19:40:25 -04:00
Greg Johnston 60d883a26c only subscribe to memo manually if already loaded 2024-08-01 19:40:25 -04:00
Greg Johnston add3be0ff5 Suspense SSR 2024-08-01 19:40:25 -04:00
Greg Johnston 20c29cab89 add serde-wasm-bindgen encoding for resources 2024-08-01 19:40:24 -04:00
Greg Johnston 2bc04444e1 work related to 0.7 blog port 2024-08-01 19:40:24 -04:00
Greg Johnston b41fde3ff9 work related to 0.7 blog port 2024-08-01 19:40:24 -04:00
Greg Johnston c29081b12a completing work on meta 2024-08-01 19:40:24 -04:00
Greg Johnston 30c1cd921b stash 2024-08-01 19:40:24 -04:00
renshuncui b9c620d4cd
chore: fix some comments (#2712)
Signed-off-by: renshuncui <renshun@111.com>
2024-07-29 09:30:50 -04:00
Oleg Shatov 0c817d51fe
fix: accurately update number of pending action dispatches (closes #2652) (#2653) 2024-07-03 06:48:02 -04:00
Chris fb5d8513ff
docs: generate link to definition (#2656) 2024-07-03 06:46:02 -04:00
David Pitoniak a2c7e23d54
docs: grammar typo for MultiActon doc comment (#2589) 2024-05-11 15:05:35 -04:00
Greg Johnston 41f3c46830
chore: bump nightly version in examples (#2479) 2024-04-01 15:16:53 -04:00
Paul Hansen 6a83161368
chore: add MSRV (#2360) 2024-02-28 07:19:09 -05:00
zoomiti 753bf1ed54
Fix Broken Doc links and Deprecate `FromUtf8Error` in `oco.rs` (#2318)
* fix: deprecate `FromUtf8Error` in `oco.rs`

* chore: fix broken doc links (#859)

* chore: fix broken doc link to server attribute macro

* cargo fmt
2024-02-21 19:24:40 -08:00
Greg Johnston dfddbd6bf9
docs: give a warning when you try to `.dispatch()` an action immediately (closes #2225) (#2286) 2024-02-09 20:55:10 -05:00
Greg Johnston b4a1d90327 clean up for CI 2024-01-20 12:32:51 -05:00
Greg Johnston 35e8e74dcf get rkyv working and work on custom encoding example 2024-01-19 14:16:58 -05:00
Greg Johnston 1ad7ee8a03 generalize error redirect behavior across integrations 2024-01-19 14:16:58 -05:00
Greg Johnston cc6f65cd83 initial version of server action error handling without JS 2024-01-19 14:16:58 -05:00
Greg Johnston b0cdeab906 remove old code 2024-01-19 14:16:58 -05:00