Commit graph

175 commits

Author SHA1 Message Date
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
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
Demonthos
ab10d327ac
Fix attribute value in macro (#577)
* create into AttributeValue trait to allow arbitraty attribute values

* allow attributevalue in non-template macro
2022-10-12 20:43:37 -07:00
saicu
6476335750
to_owned!: allow optional comma at the end (#584) 2022-10-08 16:23: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
Marc Espín
964a942243
Feat: Make AttributeValue::Any usable (#565)
* Implemented Display for AttributeValue::Any

* Make ArbitraryAttributeValue public

* allow(missing_docs) for ArbitraryAttributeValue

* Formatted lib.rs
2022-09-30 10:48:25 -07:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. (#387)
* feat: use synchronous router design

* feat: function to get router out of dom

* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Jonathan Kelley
94004cfe19 chore: clean up some clippy stuff 2022-07-03 00:11:28 -04:00
Reinis Mazeiks
85aa4584ff Fix: expose AttributeValue; update tests to pass 2022-05-07 13:43:40 +03:00
Jonathan Kelley
356f37e9ee feat: arbitrary attributes 2022-05-05 16:50:33 -04:00
Jonathan Kelley
e04a6d63a5 chore: move tests out of core and into the top level crate
This commit moves the tests out of core so rust analyzer
is happier with the workspace.
2022-03-02 22:48:22 -05:00
Jonathan Kelley
e51b47d1fb chore: move macros around 2022-03-02 17:56:12 -05:00
Jonathan Kelley
62df5f7097 docs: document the entire core crate 2022-02-20 17:37:46 -05:00
Jonathan Kelley
923fb0701d fix: clippy 2022-01-31 03:34:52 -05:00
Jonathan Kelley
1ea42799c0 wip: clean up the core crate after switching to recursive diff engine 2022-01-30 18:34:24 -05:00
Jonathan Kelley
3bb5c8142c fix: switch to future based diffing
this commit removes the old manual fiber implementation in favor of a
traditional recursion based approach. This should make the diffing
algorithm easier to work on and eliminate various stack-based bugs in.
2022-01-30 17:47:58 -05:00
Jonathan Kelley
d84fc05386 feat: plug in bubbling 2022-01-03 02:06:42 -05:00
Jonathan Kelley
75fa7b4aa6 fix: make tests pass 2022-01-03 01:12:39 -05:00
Jonathan Kelley
d1560450ba wip: remove runner on hook and then update docs 2022-01-02 02:15:04 -05:00
Jonathan Kelley
c7d001cbb4 wip: rip out unsafe task engine 2021-12-26 14:22:30 -05:00
Jonathan Kelley
cda759c659 examples: upgrade to new version of dioxus core.
also add the inline_props macro
2021-12-25 17:18:05 -05:00
Jonathan Kelley
21e00c114e chore: continue to consolidate 2021-12-21 01:11:27 -05:00
Jonathan Kelley
b997b8ebbb feat: enable children properly 2021-12-21 00:46:10 -05:00
Jonathan Kelley
e2e4d431e1 wip: adjust memoization 2021-12-20 22:33:13 -05:00
Jonathan Kelley
2c3a046426 wip: prepare to change our fragment pattern. Add some more docs 2021-12-18 15:17:32 -05:00
Jonathan Kelley
ded9696930 wip: fix ssr 2021-12-14 22:48:20 -05:00
Jonathan Kelley
8daf7a6ed8 wip: go back to noisy lifetime solution 2021-12-14 02:27:59 -05:00
Jonathan Kelley
597a0456f5 wip: update hooks 2021-12-13 00:14:47 -05:00
Jonathan Kelley
96b3d56e09 feat: move back to combined cx/props 2021-12-13 00:06:17 -05:00
Jonathan Kelley
e6c6bbdc1e polish: clean up the core crate 2021-12-12 19:47:13 -05:00
Jonathan Kelley
1e4a599d14 wip: rename fc to component 2021-12-09 21:19:31 -05:00
Jonathan Kelley
36d89beb34 wip: rename 2021-11-28 16:25:42 -05:00
Jonathan Kelley
93d4b8ca7c wip: some docs and suspense 2021-11-23 15:53:57 -05:00
Jonathan Kelley
574d7fdb9e wip: remove scopechildren in favor of elements directly 2021-11-09 14:36:26 -05:00
Jonathan Kelley
b9fc5fc251 wip: move hooklist into scope 2021-11-09 12:18:45 -05:00
Jonathan Kelley
d2f0547692 wip: move testdom methods into virtualdom 2021-11-09 12:10:11 -05:00
Jonathan Kelley
f2e343c154 chore: cleanup src 2021-11-09 02:16:25 -05:00
Jonathan Kelley
2559740463 wip: clean up, use old approach to components 2021-11-07 20:59:09 -05:00
Jonathan Kelley
464b457b80 wip: move more stuff out 2021-11-07 01:07:42 -05:00
Jonathan Kelley
e4cda7c2cb wip: remove bumpframe 2021-11-07 01:01:22 -05:00
Jonathan Kelley
2933e4bc11 wip: major cleanups to scheduler 2021-11-06 23:11:17 -04:00
Jonathan Kelley
d96276a715 wip: no more lifetimes 2021-11-06 21:07:01 -04:00
Jonathan Kelley
95bd17e38f wip: more raw ptrs 2021-11-05 18:02:44 -04:00
Jonathan Kelley
b8d98698c6 wip: remove resource pool in favor of raw ptrs 2021-11-05 17:15:59 -04:00
Jonathan Kelley
70b983d090 wip: consolidation, simplification 2021-11-05 16:28:08 -04:00
Jonathan Kelley
b56ea6c9a9 wip: work on scheduler, async, coroutines, and merge scope into context 2021-11-03 19:55:02 -04:00