* work on updating docs to master version
* more updates
* more polishing
* finish interactivity chapter
* finish updating core guide
* fix grammer mistakes and typos
* more grammer fixes
* add liveview guide
* remove doc build
* WIP custom renderer docs
* add axum as dev-dependancy to guide
* fix examples
* fix overview example
* use md book fork to fix compilation
This commit adds subtree memoization to Dioxus.
Subtree memoization is basically a compile-time step that drastically
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates
are then understood by the various renderers in the ecosystem as a
faster way of rendering the same items.
For example, in the web, templates are simply a set of DOM Nodes created
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance.
Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.
This commit represents a working starter point for this work, adding support
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve
performance, and simplify our implementation.
* chore: dont use prebuilt builder pattern for configuring desktop
* chore: use regular config pattern for web
* Chore: update docs too
* chore: clean up some warnings
* minor formatting
* Internationalization: move guide to en folder and preserve its history. (#494)
* chore: move guide to en folder
* docs: add english as language
* merged conf resolved
* chore: remove outdated docs
* chore: use taffy dimension directly
* Add PT-BR translations (#456)
* Translate final.md, hello_world.md, README.md, ROADMAP.md and SUMMARY.md
* Translatation complete
* Internationalization: move guide to en folder and preserve its history. (#494)
* Clean files and build mdBook with localization feature
* Rebase, remove leftovers and check book builds for every language: ✅
Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>
* Remove argument from `use_hook` closure (#496)
Also; update docs for said function
* chore: prevent reference from being uploaded
Co-authored-by: Altug Sahin <altugsahin@gmail.com>
Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>
Co-authored-by: Breno Rocha <66398400+amindWalker@users.noreply.github.com>
Co-authored-by: Reinis Mazeiks <rMazeiks@users.noreply.github.com>
Co-authored-by: = <evanalmloff@gmail.com>
* Fix typo - wrong example for "stopping propagation" section
* Move `lib.rs` in guide back to `src`
* Make sure tests get run when guide is updated (there's examples in the guide to check for compilation errors)