v0.7.0-preview2 #2565
Replies: 6 comments 5 replies
-
This link is dead, was it supposed to link to a Github repository? |
Beta Was this translation helpful? Give feedback.
-
I don't see it mentioned (and correct me if I'm wrong), but it looks like we're also missing |
Beta Was this translation helpful? Give feedback.
-
Thank you for all the work that you do! |
Beta Was this translation helpful? Give feedback.
-
What are the consequences of the |
Beta Was this translation helpful? Give feedback.
-
I see this in the release page, but not in the version at the top of this discussion. |
Beta Was this translation helpful? Give feedback.
-
I see there is an "?" beside "islands" in the checklist.. Is there a lack of interest or important blockers when it comes to this feature? I thought I'd quickly express our support for islands. Tauri, the modern rusty electron for building apps on all devices, only allows Single-page-apps/Multi-page-apps or SSG. Food for thought, and thanks for all the hard work!! |
Beta Was this translation helpful? Give feedback.
-
v0.7.0-preview2
The
-preview
here is intended to convey: Here is a mostly-working but pre-alpha release of what I've been working on for the last six months or so. This work can be found in theleptos-0.7
branch. Enough work has been done that many (but not all) of the examples in the repo are functioning. This release is a fairly complete rewrite of the internals of the entire framework. You should expect both missing APIs and bugs.Note the following:
0.7.0-preview2
to theCargo.toml
of an existing app and expect it to workuse leptos::*;
touse leptos::prelude::*;
and then using modules and reexports more sanely from the main crate0.7.0-preview
playground that includes the setup of a basic app with comments. You should be able to expand from there.Examples that Work
The following examples in the repo are known to work and can be useful to learn from
counter
counters
error_boundary
fetch
todomvc
parent_child
router
todo_app_sqlite_axum
ssr_modes_axum
Notable Changes
Cargo.toml
setupuse leptos::prelude::*
instead ofuse leptos::*
Send
/Sync
. In general for values being stored in signals this means you need to useArc
on occasion instead ofRc
, etc.send_wrapper
crate. Better ergonomics here are an open questionArc
equivalents to each signal type (ArcRwSignal
,ArcMemo
, etc.) which manage their lifecycle via reference counting rather than the reactive ownership graph. This can be used for things like iterating over nested signals (seecounters
example) and pushing signals "up" in the tree, rather than using the manual.dispose()
and owner manipulation patternsRwSignal::new()
,signal()
instead ofcreate_signal()
to matchchannel()
, etc.)path!()
macro to parse the old strings into this format but it's not implemented.Known Missing APIs
cargo-leptos
hot reloadingon:
on componentsSteps before
-alpha
What's Helpful?
Try things out, see what breaks, see what feels good. How can we improve the module imports? What are pain points? etc. Feel free to comment here or on Discord in the
#preview
channel,This discussion was created from the release v0.7.0-preview2.
Beta Was this translation helpful? Give feedback.
All reactions