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
e8c48d46cf
replace fxhash crate with rustc-hash ( #588 )
2022-10-12 18:27:26 -07:00
Jon Kelley
fb2f3e68ff
fix: random commit ( #586 )
2022-10-08 23:07:20 -07:00
saicu
6476335750
to_owned!: allow optional comma at the end ( #584 )
2022-10-08 16:23:26 -07:00
Demonthos
928b5358b2
allow arbitrary attribute value in owned attribute value ( #574 )
2022-10-02 14:13:06 -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
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
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
Jon Kelley
67dc6e6017
feat: implement type magic to allow strings, format args, and other types directly in rsx ( #550 )
...
* feat: implement type magic
* chore: undo example
* fix: let tests pass
* chore: add generic to allow any nesting of iterators
* Chore: remove comments
* chore: update rsx usage
* chore: use cleaner version of generic IntoVnode
* chore: don't derive default for lfietimed thing
* chore: remove latent comment
* fix: accept a third parameter
2022-09-12 22:49:04 -07:00
Marc Espín
8427a3f657
Support Bytes in AttributeValue ( #543 )
2022-09-07 09:20:35 -05:00
Reinis Mazeiks
d734dc5b46
Remove argument from use_hook
closure ( #496 )
...
Also; update docs for said function
2022-07-11 15:50:56 -04: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
7e454e770a
chore: remove some hotpath logging
2022-07-03 00:14:15 -04:00
Jonathan Kelley
94004cfe19
chore: clean up some clippy stuff
2022-07-03 00:11:28 -04:00
Jonathan Kelley
a6e8852ced
polish: make clippy happy on use_hook
2022-06-30 15:41:45 -04:00
Evan Almloff
bf548d4a0e
set id before creating listener
2022-06-29 09:48:16 -05:00
Evan Almloff
11d9a7d013
Merge remote-tracking branch 'upstream/master' into fix_nonbubbling_web_events
2022-06-22 13:59:10 -05:00
Evan Almloff
61b4bb2f19
handle bubbling events
2022-06-22 13:57:05 -05:00
Evan Almloff
9e7e5b0859
Merge remote-tracking branch 'upstream/master' into jk/rsx-refactor
2022-06-16 09:17:36 -05:00
Yin Jifeng
3cbf8ed6fa
fix: remove task id from scope when success
2022-06-13 18:43:36 +08:00
Yin Jifeng
814235f145
docs: update func names
2022-06-13 18:43:36 +08:00
Yin Jifeng
7576426c93
core: cleanup tasks polling fn
2022-06-13 18:43:36 +08:00
Evan Almloff
71d31556e5
Merge https://github.com/DioxusLabs/dioxus into jk/rsx-refactor
2022-06-10 18:16:05 -05:00
Evan Almloff
fe5c698c09
add DirtyAll to SchedulerMsg
2022-06-09 10:01:09 -05:00
王一旋
2433b9d305
docs: examples of mistakes
...
docs: add hard_diff example missing parameter
2022-06-02 10:29:41 +08:00
Evan Almloff
4b1ea5879d
Merge https://github.com/DioxusLabs/dioxus into jk/rsx-refactor
2022-05-27 18:26:31 -05:00
Evan Almloff
f9713b2fe9
Merge remote-tracking branch 'origin/master' into jk/rsx-refactor
2022-05-27 17:56:50 -05:00
Evan Almloff
871f51f91b
It compiles
2022-05-25 14:08:59 -05:00
Evan Almloff
ca10d89670
add RsxTextIndex
2022-05-25 11:20:07 -05:00
Evan Almloff
c7c84da8ab
WIP hot reload
2022-05-25 08:58:59 -05:00
Evan Almloff
43d750c329
fix clippy
2022-05-22 21:21:28 -05:00
Evan Almloff
db1866090a
fix broken doc links
2022-05-22 20:44:32 -05:00
Reinis Mazeiks
85aa4584ff
Fix: expose AttributeValue; update tests to pass
2022-05-07 13:43:40 +03:00
Reinis Mazeiks
2eca71e644
Fix: serialize AttributeValue as a simple value
2022-05-07 12:17:47 +03:00
Jonathan Kelley
03110b85cd
fix: cargo fmt
2022-05-06 20:46:33 -04:00
Jonathan Kelley
bded314251
wip: remove color
2022-05-05 16:50:36 -04:00
Jonathan Kelley
356f37e9ee
feat: arbitrary attributes
2022-05-05 16:50:33 -04:00
Jonathan Kelley
3febd42588
Release dioxus-core v0.2.1, dioxus-core-macro v0.2.1, dioxus-html v0.2.1, dioxus-interpreter-js v0.2.1, dioxus-desktop v0.2.3, dioxus-hooks v0.2.1, dioxus-liveview v0.1.0, dioxus-native-core v0.2.0, dioxus-native-core-macro v0.2.0, dioxus-router v0.2.3, dioxus-ssr v0.2.1, dioxus-tui v0.2.2, dioxus-web v0.2.1, fermi v0.2.1, dioxus v0.2.4
2022-05-02 23:57:20 -04:00
Demonthos
f4689a4e27
Merge branch 'DioxusLabs:master' into lazy_tui
2022-04-17 08:48:39 -05:00
Dave Rolsky
69752313eb
Fix typo in docs for NodeFactory.bump
2022-04-11 10:33:06 -05:00
Demonthos
479c12725f
Merge branch 'DioxusLabs:master' into lazy_tui
2022-04-04 12:10:18 -05:00
Jonathan Kelley
93405c2a40
Fix: diffing should poproots too
2022-04-04 12:18:51 -04:00
Jon Kelley
09d193d999
Merge pull request #331 from Demonthos/diff-fix
...
fix: diff_lazynodes bug adding children
2022-04-04 12:15:31 -04:00
Evan Almloff
7f4e257757
bugfixes, testing and refactoring
2022-03-26 20:32:49 -05:00
Evan Almloff
26d92b6e51
rebase master
2022-03-26 20:27:10 -05:00
Evan Almloff
43b5a230f0
PushRoot before adding children
2022-03-26 13:35:23 -05:00
Evan Almloff
aec5cd9dfa
fix lazynode diff bug adding children
2022-03-26 12:53:24 -05:00
Joshua Kifer
1b736f1001
Remove release_max_level features from several Cargo.toml log dependencies
2022-03-15 17:59:30 -06:00
Jonathan Kelley
e7505188d6
release: make a new 0.2.0 release of Dioxus
2022-03-09 14:24:05 -05:00