Commit graph

27 commits

Author SHA1 Message Date
Jonathan Kelley
4eefc3f854 chore: rename all &cx to cx, make clipppy happy 2022-12-07 13:11:40 -08:00
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
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
Chrislearn Young
e4466fee0a
Add liveview Salvo integration (#538) 2022-09-13 14:24:30 -07:00
Reinis Mazeiks
f3fcec2bdf Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-events
 Conflicts:
	packages/html/src/events.rs
	packages/tui/src/hooks.rs
2022-06-28 21:09:20 +03:00
Evan Almloff
2d45e1dc8d add bubbling data to events after merge 2022-06-22 14:24:03 -05: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
Reinis Mazeiks
45980f9a1e Update examples to avoid deprecated API 2022-05-12 15:00:43 +03:00
Reinis Mazeiks
f81ecf5974 Update liveview interpreter to match desktop 2022-05-04 20:05:21 +03:00
Ian
3b45edacc0 features don't play nice with vscode development 2022-04-26 09:54:12 -04:00
Ian
4b3d200c0d fixed cargo check issue 2022-04-26 09:50:19 -04:00
Ian
f332ffc5ad support starting liveview with props 2022-04-24 00:37:46 -04:00
Ian
dfaa6c186b Fixed example squiglies. 2022-04-23 22:13:43 -04:00
WIGGLES
d6a4a59035
Merge branch 'DioxusLabs:master' into master 2022-04-20 16:50:39 -04:00
Jonathan Kelley
5ff87f6375 fix: liveview handler should filter only for events 2022-04-20 00:52:10 -04:00
Jonathan Kelley
a1c644d80b feat: allow header injection for liveview 2022-04-19 23:48:17 -04:00
Ian
a632d9b12b implemented liveview axum adapter 2022-04-19 22:51:56 -04:00
Jonathan Kelley
e44cc41114 fix: cargo fmt 2022-03-15 01:35:59 -04:00
Jonathan Kelley
7bdb8a4539 fix: fmt by including adapters for liveview 2022-03-15 01:28:50 -04:00
Jonathan Kelley
3b4a041c31 fix: liveview failing to pass 2022-03-15 01:14:26 -04:00
Jonathan Kelley
71184b51a0 feat: liveview working with warp 2022-03-15 01:02:44 -04:00
Jonathan Kelley
e0900ca256 wip: add warp liveview proof of concept 2022-03-12 09:41:10 -05:00
Jonathan Kelley
a4f280d163 feat: more API updates 2021-12-28 23:20:01 -05:00
Jonathan Kelley
1e4a599d14 wip: rename fc to component 2021-12-09 21:19:31 -05:00
Jonathan Kelley
fd7933561f chore: move CLI into its own "studio" app 2021-07-07 16:58:23 -04:00
Jonathan Kelley
9b560dfedb wip: more liveview and webview custom client 2021-03-16 14:28:54 -04:00