Commit Graph
75 Commits
Author SHA1 Message Date
Evan Almloff 204ac8b2ed clarify mutations docs 2023-03-28 11:58:50 -05:00
Evan Almloff c0f9355648 fix any value dropping 2023-01-02 21:26:12 -06:00
Evan Almloff 51dba50c04 use BumpBox<Any> and FromAnyValue instead of sync bounds 2023-01-02 14:40:25 -06:00
= 170a3669f7 reduce usage of unsafe 2022-12-26 08:37:50 -06:00
Jonathan Kelley cc7736302a Merge branch 'master' into fix-non-str-attributes 2022-12-17 01:51:13 -08:00
Jonathan Kelley d4b6bb8a7b feat: fix the scope rollover bug 2022-12-12 18:31:30 -08:00
= 73ec4abfdf Merge remote-tracking branch 'upstream/master' into fix-non-str-attributes 2022-12-11 21:26:38 -06:00
Sam Schmeink 6166d4eb73 fix: replace fxhash with rustc-hash 2022-12-10 03:56:48 +01:00
Evan Almloff 8a1c96a68c fix custom attribute value support 2022-12-09 16:18:37 -06:00
Jonathan Kelley 7b1cdb7d85 feat: get desktop working with new template strategy 2022-12-05 16:08:41 -08:00
Jonathan Kelley a61daf220d feat: context api overhaul 2022-12-02 16:24:49 -08:00
Jonathan Kelley 85657d3906 feat: rip out mutations for templates 2022-12-01 00:46:15 -05:00
Jonathan Kelley 3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Jonathan Kelley 18d6b1ad6f feat: get web working properly 2022-11-30 17:21:10 -05:00
Jonathan Kelley 3c19def550 chore: get create working and simplify dynamic nodes 2022-11-30 11:24:13 -05:00
Jonathan Kelley 03aea885cf chore: make clippy happy 2022-11-29 16:46:25 -05:00
Jonathan Kelley 7c3d308ab5 chore: make warnings go away 2022-11-29 16:31:04 -05:00
Jonathan Kelley 565df11f7b chore: more tests passing 2022-11-27 02:06:04 -05:00
Jonathan Kelley f614cbb401 wip: migrate all tests to core 2022-11-27 00:56:49 -05:00
Jonathan Kelley 0cfbfc88e2 feat: more tests working 2022-11-24 06:47:14 -05:00
Jonathan Kelley 4dd9a616a5 wip: fragment diffing working 2022-11-23 23:15:01 -08:00
Jonathan Kelley 9c4abcbea0 wip: more tests! 2022-11-22 21:32:26 -08:00
Jonathan Kelley 4bfd936e12 chore: tweak fragments and tests 2022-11-22 19:59:56 -08:00
Jonathan Kelley 66319cf6e2 wip: queue mods 2022-11-16 01:13:39 -08:00
Jonathan Kelley 7f85806fa6 wip: trying to get namespaced elements working 2022-11-15 23:31:23 -08:00
Jonathan Kelley e8ae830cf2 feat: get desktop working with just creation 2022-11-15 18:32:48 -08:00
Jonathan Kelley 47d0f51e00 wip: overhaul event system 2022-11-15 16:05:22 -08:00
Jonathan Kelley c44bd11fe5 chore: more refactoring, docs 2022-11-11 18:29:27 -08:00
Jonathan Kelley f5bc137f01 chore: clean up scheduler code 2022-11-09 10:58:11 -08:00
Jonathan Kelley c096057dd3 chore: tweak attributes to only set ID once 2022-11-08 20:06:39 -08:00
Jonathan Kelley fc9fe6e560 feat: split apart template mutations 2022-11-08 19:39:37 -08:00
Jonathan Kelley 94601ccd1f feat: async components! 2022-11-03 17:34:42 -07:00
Jonathan Kelley c6a6c3d0f8 feat: components pass thru children 2022-11-02 17:29:18 -07:00
Jonathan Kelley b6c0bce89c feat: support cached ssr 2022-11-02 01:00:37 -07:00
Jonathan Kelley 4a31b29703 feat: simple tests passing 2022-11-01 18:42:29 -07:00
Jonathan Kelley 23603aaaf5 wip: rewrite core to be template focused 2022-10-27 21:58:47 -07:00
Jonathan Kelley 22d4bf7346 feat: use walking pattern 2022-10-26 18:04:47 -07:00
Jonathan Kelley 7cbb4d52dd wip: more modifications to templates 2022-10-21 18:54:14 -07:00
Jonathan Kelley 90982e0ccb wip: start to refactor out hot reloading from packages
Also implement alternative simpler template system
2022-10-20 09:56:09 -07: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
saicu e8c48d46cf replace fxhash crate with rustc-hash (#588) 2022-10-12 18:27:26 -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
Jonathan Kelley 356f37e9ee feat: arbitrary attributes 2022-05-05 16:50:33 -04:00
Jonathan Kelley 93405c2a40 Fix: diffing should poproots too 2022-04-04 12:18:51 -04:00
Jonathan Kelley 56517ef5de fix: merge conflicts 2022-02-26 17:35:23 -05:00
Jonathan Kelley 77631bff1f Merge branch 'master' into jk/documet-everything 2022-02-26 17:33:06 -05:00
Shuanghui Yan aa2d6b8d11 fix: format styles 2022-02-24 18:13:00 +08:00
Shuanghui Yan 4eeb3da8c9 fix: add ns param for removeAttribute 2022-02-22 23:14:11 +08:00
Jonathan Kelley 62df5f7097 docs: document the entire core crate 2022-02-20 17:37:46 -05:00
Jonathan Kelley a4ea0ba4fe chore: undo dirty_scopes rename 2022-01-31 02:52:40 -05:00