Commit Graph
14 Commits
Author SHA1 Message Date
Jonathan Kelley 3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Demonthos 3b7b503333 Refactor Mutations and simplify Templates (#578)
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
Demonthos daeffd4149 pass clippy (#575) 2022-10-02 14:12:24 -07:00
Demonthos 047ed1e553 Subtree memorization / reactive templates (#488)
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.
2022-09-30 12:03:06 -07:00
Demonthos 4a5ae758ee Allow Multiple dependencies for states in the RealDom (native core) (#412)
* WIP multable deps

* WIP: refactor and genralize state macro

* add traversable trait

* update tui to use elementid to index dom
2022-07-07 00:50:22 -04:00
Jonathan Kelley 8be66bd34d fix: apply some clippy lints and rename the liveview methods to not intersect 2022-06-20 02:24:39 -04:00
demonthos 31c7907f25 update with AttritubeValue 2022-05-07 13:56:11 -05:00
Evan Almloff acfde71d7e refactor prevent-default 2022-05-05 07:09:18 -05:00
Evan Almloff 5d5e7f55fd pass clippy 2022-05-04 14:37:30 -05:00
Evan Almloff dd7784d205 clean up and document focus system 2022-05-04 14:28:02 -05:00
Evan Almloff 749150e22d change prevent default to listen to tab index 2022-05-04 14:15:07 -05:00
Evan Almloff 9ed722ae45 change focus when an element is clicked 2022-05-03 17:19:16 -05:00
Evan Almloff 23376fef8e move focus into event system 2022-05-03 16:44:53 -05:00
Evan Almloff ce5ade9fa6 add focus state 2022-05-03 15:06:07 -05:00