Commit Graph
31 Commits
Author SHA1 Message Date
Evan Almloff dc446b5e5b fix extending an element 2023-09-19 16:38:27 -05:00
Evan Almloff 05fb8c1e91 Merge branch 'master' into router-typesafe 2023-07-07 18:31:48 -07:00
Evan Almloff 8f67d0aafd make creating rsx nodes from macros possible 2023-06-29 12:52:27 -07:00
Evan Almloff c04ce2901e fix the span the error reports under 2023-03-21 07:59:25 -05:00
Evan Almloff 3655e7c89e throw an error instead of accepting attributes without commas 2023-03-21 07:55:36 -05:00
Evan Almloff 3f1d525734 make trailing commas in components optional 2023-03-11 18:27:50 -06:00
Jonathan Kelley 1940855e39 feat: implement comments in zero children nodes 2023-01-10 17:47:58 -08:00
Evan Almloff 555b192436 Merge branch 'upstream' into fix-hot-reloading 2022-12-23 18:06:47 -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 2131e5658b add hot reloading context trait 2022-12-10 14:09:59 -06:00
Jonathan Kelley 5673017def chore: clean up the repo some 2022-12-06 17:50:25 -08:00
Jonathan Kelley 3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Jonathan Kelley 9c4abcbea0 wip: more tests! 2022-11-22 21:32:26 -08:00
Jonathan Kelley e09b6bf813 chore: tweak generic arguments and iterators in rsx 2022-11-15 20:58:56 -08: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
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 4a8a7dd5f4 allow the last attribute in a component to contain formatting (#504) 2022-07-27 13:52:09 -07:00
Jonathan Kelley fa756ba245 feat: manual props 2022-06-28 17:16:26 -04:00
Evan Almloff 9e7e5b0859 Merge remote-tracking branch 'upstream/master' into jk/rsx-refactor 2022-06-16 09:17:36 -05:00
Evan Almloff 94448ea4aa handle formatting options 2022-05-30 18:32:57 -05:00
Evan Almloff 06390b9be5 allow rsx to be used outside of a proc_macro context 2022-05-28 12:10:32 -05:00
Evan Almloff 4b1ea5879d Merge https://github.com/DioxusLabs/dioxus into jk/rsx-refactor 2022-05-27 18:26:31 -05:00
Evan Almloff a0c7e4d78a add component support 2022-05-27 09:47:44 -05:00
Jonathan Kelley f9d9f85924 feat: format components properly 2022-04-24 13:12: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
Ilya Maximov 0be88d20ee docs: remove capitals and periods from errors 2022-03-19 19:29:57 +01:00
Jonathan Kelley b93487282d feat: move files around 2022-02-18 20:54:30 -05:00