Jonathan Kelley
e7e21fa2f0
fix: errors when using render macro
2022-12-23 17:47:57 -05:00
Jonathan Kelley
fd8015e943
fix: hovers
2022-12-23 17:39:07 -05:00
Evan Almloff
d98821da47
move hot reloading utilities to dioxus repository
2022-12-23 15:42:34 -06:00
Evan Almloff
3165c90e9f
update rsx tests
2022-12-22 19:32:21 -06:00
Evan Almloff
cc35298a1d
more resiliant span debug parsing
2022-12-22 18:34:20 -06:00
Evan Almloff
1530445972
fix hot reloading rsx with nested rsx calls
2022-12-22 16:38:07 -06:00
Evan Almloff
04a923f83e
fix changing the order of dynamic nodes
2022-12-22 11:36:38 -06:00
Evan Almloff
db7a1ec0b0
fix lints
2022-12-21 13:04:57 -06:00
Evan Almloff
4c1fe1d9bb
allow changing the number of root nodes
2022-12-21 12:50:48 -06:00
Evan Almloff
e5a5850354
merge master
2022-12-20 20:48:28 -06:00
Jonathan Kelley
d3be971f4e
chore: rollback to option instead of anyhow
2022-12-19 18:06:13 -08:00
Evan Almloff
4364a4b511
handle updating templates better
2022-12-19 19:28:44 -06:00
Jonathan Kelley
3fd08ef49e
chore: remove unneeded files
2022-12-19 16:12:15 -08:00
Jonathan Kelley
09b38574db
Merge branch 'master' into jk/autofmt-fixues
2022-12-19 12:19:51 -08:00
Evan Almloff
96ce704f8e
fix serialization
2022-12-19 11:48:28 -06:00
Evan Almloff
fbc89a7088
make 'static lifetime explicit
2022-12-19 09:37:15 -06:00
=
14dd568987
Merge branch 'upstream-master' into fix-hot-reloading
2022-12-16 10:07:11 -06:00
=
6d2e510200
WIP implement hot reloading context for html
2022-12-12 21:46:49 -06:00
Jonathan Kelley
d4b6bb8a7b
feat: fix the scope rollover bug
2022-12-12 18:31:30 -08:00
=
b1d053d6cc
fix template diffing
2022-12-11 09:38:38 -06:00
Evan Almloff
2419a2ae9d
WIP diffing templates
2022-12-10 21:18:44 -06:00
Evan Almloff
6b19229b53
use interning to leak less memory
2022-12-10 16:21:31 -06: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
Evan Almloff
2131e5658b
add hot reloading context trait
2022-12-10 14:09:59 -06:00
Evan Almloff
da64b0c2a8
WIP parising
2022-12-10 12:29:15 -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