leptos-rs / leptos

Build fast web applications with Rust.
https://leptos.dev
MIT License
16.32k stars 651 forks source link

0.7 todos #2771

Open gbj opened 3 months ago

gbj commented 3 months ago

I have merged the leptos_0.7 branch from #2607 because it is much easier just to juggle main + PRs than main, a branch, PRs to main, and PRs to the branch!

Good first issues/PRs super welcome to fill in missing things:

Outstanding feature TODOs, in order of priority

Forward-ported bug fixes (things that have been fixed on 0.6 but reimplemented in 0.7, and need to be checked)

Finalizing:

When ready for release

dmgolembiowski commented 2 days ago
  • [ ] Figuring out the interaction between Lazy routes and hydration (what do you do while hydrating if the code for the route hasn't been lazy-loaded yet?)

@gbj Regarding this I was wondering if a js-sys generated binding to either of WebAssembly.compileStreaming() or WebAssembly.instantiateStreaming() could provide the hydration opportunity for a thing that hasn't been loaded yet?

For context:

The WebAssembly.instantiateStreaming() static method compiles and instantiates a WebAssembly module directly from a streamed underlying source. This is the most efficient, optimized way to load Wasm code.

I have a suspicion its importObject argument could be the collection of imports for which there is a separate leptos_lazy_{$sha}.wasm file corresponding to the DOM's expectation - like a collection of small polyfill files.