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
020c4bf0f8
fix bug with dynamic nodes after fragments ( #591 )
2022-10-15 11:00:56 -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
Eric Hulburd
02a21bc193
fix: set false for media event bubbling ( #542 )
2022-09-08 07:55:07 -05:00
Jon Kelley
6e7015b997
Merge pull request #466 from Demonthos/fix_js_interperter
...
check that an node is an element before removing listeners
2022-06-30 15:18:40 -04:00
Evan Almloff
58a495351a
check that an node is an element before removing listeners
2022-06-29 09:09:47 -05: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
61b4bb2f19
handle bubbling events
2022-06-22 13:57:05 -05:00
Evan Almloff
38de26d0e4
remove attributes correctly
2022-06-09 10:31:11 -05:00
Reinis Mazeiks
45980f9a1e
Update examples to avoid deprecated API
2022-05-12 15:00:43 +03:00
Reinis Mazeiks
aaf9d4665f
Update interpreter and example
2022-05-12 14:36:52 +03:00
Reinis Mazeiks
d84d414170
Add offset coordinates to mouse events on TUI and desktop.
2022-05-04 16:42:14 +03: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
Jonathan Kelley
dfc69c0905
fix: compile fail for web
2022-04-04 12:29:00 -04:00
Jon Kelley
5c6ff70dd4
Merge pull request #316 from DioxusLabs/jk/fix-hydration
...
fix: setnode method for rehydration code
2022-03-20 20:11:55 -04:00
Jonathan Kelley
ad027d7aa4
fix: radio buttons in forms
2022-03-20 20:11:12 -04:00
Jonathan Kelley
f26f704b6b
fix: setnode method for rehydration code
2022-03-17 10:51:23 -04:00
Jonathan Kelley
2d2de36eed
fix: filtering for buttons
2022-03-13 18:53:20 -04:00
Jonathan Kelley
841ad91fe1
fix: dblclick instead of doubleclick
2022-03-11 10:49:38 -05:00
Jonathan Kelley
e7505188d6
release: make a new 0.2.0 release of Dioxus
2022-03-09 14:24:05 -05:00
Jonathan Kelley
f98c3f161f
fix: interpreter code for disabled and dangerous innter html
2022-03-05 14:38:28 -05:00
Shuanghui Yan
2a6e6371e7
Merge remote-tracking branch 'upstream/master'
2022-02-24 18:08:21 +08:00
Jonathan Kelley
92573d67a1
fix: keyed diffing accidentally pushing every node
2022-02-23 08:09:16 -05:00
Shuanghui Yan
4eeb3da8c9
fix: add ns param for removeAttribute
2022-02-22 23:14:11 +08:00
Jonathan Kelley
ba17b57cdd
fix: also include values in onchange
2022-02-15 13:44:05 -05:00
Jonathan Kelley
345dfd4214
Merge pull request #243 from asaaki/update/wry-0-13
...
Update to wry 0.13; support IPC, devtool, and feature flags
2022-02-15 11:23:16 -05:00
Jonathan Kelley
5a908d1e8b
fix: remove console log
2022-02-14 12:23:30 -05:00
mrxiaozhuox
dd9f0f362e
fix: statement problem
2022-02-14 16:52:16 +08:00
Christoph Grabo
594a794f05
Switch from RPC to IPC
2022-02-13 20:34:26 +01:00
Christoph Grabo
afa5a301c7
Fix typo
2022-02-13 20:34:26 +01:00
Aster
2d1371167f
Use ===
when rhs is string
2022-02-12 21:22:05 +08:00
Jonathan Kelley
4a3680ee1b
chore: remove all warnings
2022-02-10 21:00:15 -05:00
Jonathan Kelley
82b0e6c8d6
Merge pull request #220 from DioxusLabs/jk/outerlinking
...
fix: always prevent default on `A` tags in desktop
2022-02-08 15:10:36 -05:00
Jonathan Kelley
4818c44c7c
fix: also prevent default on buttons
2022-02-08 00:43:05 -05:00
Jonathan Kelley
fc5dd8f562
fix: always prevent default on a tags
2022-02-08 00:40:48 -05:00
Jonathan Kelley
95a6abbfc5
fix: class attributes don't adhere to es6 spec
2022-02-08 00:35:06 -05:00
Jonathan Kelley
4f46089fce
feat: use serde-wasm-bindgen crate for speedup
2022-02-07 10:17:16 -05:00
Jonathan Kelley
15b074f60b
fix: type
2022-02-05 20:41:15 -05:00
Jonathan Kelley
4cc3369241
fix: add a check for dangerousinnerhtml in interpreter
2022-02-05 20:16:52 -05:00
Jonathan Kelley
28e9e4373e
fix: tweak js code
2022-02-04 18:11:58 -05:00
Jonathan Kelley
169f1dac11
Merge branch 'master' into jk/form-ma
2022-02-04 18:10:26 -05:00
Jonathan Kelley
b4391a3eaa
fix: tweak the js bindings while we're at it
2022-02-04 02:44:27 -05:00
Jonathan Kelley
ca0d7dc268
fix: remove code generation
2022-02-04 01:56:54 -05:00
Jonathan Kelley
add21d5f9d
feat: update bindings and interpreter with new tsc code
2022-02-03 12:52:05 -05:00
Jonathan Kelley
2c4e7beae8
wip: update interpreter
2022-02-02 11:32:00 -05:00
Jonathan Kelley
8f9d15db4a
feat: enable form elements in web
2022-02-02 02:00:53 -05:00
Jonathan Kelley
c4556d050e
Merge branch 'master' into jk/form-ma
2022-02-02 01:50:43 -05:00
Jonathan Kelley
84959a7826
feat: it works everywhere
2022-02-02 01:08:59 -05:00
Jonathan Kelley
b4923b2b81
ci: move gen folder out of src
2022-02-01 16:07:50 -05:00
Jonathan Kelley
71656adc89
publish: generate our bindings.rs file from an inlinejs snippet
2022-02-01 15:54:32 -05:00