Commit Graph
35 Commits
Author SHA1 Message Date
Jonathan Kelley d4b6bb8a7b feat: fix the scope rollover bug 2022-12-12 18:31:30 -08:00
Evan Almloff 3e7dbe868a unwrap instead of using unreachable 2022-12-10 15:05:41 -06:00
Evan Almloff 134a45b89d fix fmt escape sequences in static attribute/text nodes 2022-12-10 14:58:13 -06:00
Jonathan Kelley 0bf4725639 fix: namespacing of dynamic attributes 2022-12-07 15:11:51 -08:00
Jonathan Kelley 5673017def chore: clean up the repo some 2022-12-06 17:50:25 -08:00
Jonathan Kelley b182a6ee75 chore: clean up interpreter and bindings 2022-12-05 16:47:04 -08: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 3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Jonathan Kelley 7c3d308ab5 chore: make warnings go away 2022-11-29 16:31:04 -05:00
Jonathan Kelley 5713e13ff2 feat: implement ID cycling 2022-11-24 09:11:27 -05:00
Jonathan Kelley 4dd9a616a5 wip: fragment diffing working 2022-11-23 23:15:01 -08:00
Jonathan Kelley 0e5a59f9ed wip: error boundary 2022-11-22 18:38:27 -08:00
Jonathan Kelley 6b473cbdc5 feat: conditionals and iterators in rsx 2022-11-16 22:10:13 -08:00
Jonathan Kelley 04bc635ac5 wip: prep to fix bug in create 2022-11-15 23:22:41 -08:00
Jonathan Kelley 47d0f51e00 wip: overhaul event system 2022-11-15 16:05:22 -08:00
Jonathan Kelley d2ce57ba6e feat: poll async once 2022-11-03 20:56:31 -07:00
Jonathan Kelley 5d91f51e17 chore: clean things up 2022-11-03 01:38:18 -07:00
Jonathan Kelley 584504feb7 feat: keys 2022-11-03 01:24:20 -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 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 23c48cf795 render optimizations (#585) 2022-10-08 23:24:41 -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
Jon Kelley 28fba42e7e feat: add an unhygenic render macro (#556)
* feat: add an unhygenic render macro

* chore: use render instead of rsx!(cx,
2022-09-25 01:05:16 -07:00
Evan Almloff c7c84da8ab WIP hot reload 2022-05-25 08:58:59 -05:00
Jonathan Kelley 2a1970b3a9 feat: add prettyplease vendored and get basic test working 2022-04-24 02:55:20 -04:00
Jonathan Kelley 794f43ffee concept: move rsx out to its own crate 2022-04-24 02:35:52 -04:00
Ilya Maximov b8573bc4dd refactor: remove the rsx folder
it doesn't seem to be published anywhere or used at all
2022-03-19 20:35:53 +01:00
Jonathan Kelley 62df5f7097 docs: document the entire core crate 2022-02-20 17:37:46 -05:00
Jonathan Kelley b93487282d feat: move files around 2022-02-18 20:54:30 -05:00
Jonathan Kelley 174d287062 wip: extract to rsx module 2022-01-17 23:02:36 -05:00