Commit graph

4315 commits

Author SHA1 Message Date
Jonathan Kelley
7303b752ec
Merge pull request #2042 from rtretter/main
Fixed VSCode extension
2024-03-11 10:45:35 -07:00
studystill
3a21ac5710
remove repetitive words (#2046)
Signed-off-by: studystill <chenghuiyue@outlook.com>
2024-03-11 09:49:26 -05:00
JeremyChen
70f97ec787
enhance: avoid failed hot-reload if backup file like .rs~ generate (#2048)
(cherry picked from commit 8565bca11b)

Co-authored-by: Jeremy Chen <jeremychen@djeremychen.com>
2024-03-11 09:30:25 -05:00
toxicvipa
664c9c37cc removed scheme check for formatter and fixed indent bug 2024-03-09 19:32:15 +01:00
toxicvipa
f5a57c7693 implemented formatter for selection 2024-03-09 15:06:31 +01:00
Jonathan Kelley
32595ce161
Fix clippy on box references 2024-03-09 01:54:25 -08:00
Jonathan Kelley
494f7e727d
Heavily document component macro 2024-03-09 01:31:40 -08:00
Jonathan Kelley
052fd774cf
Chore #2028: radically clean up core-macro 2024-03-09 01:09:20 -08:00
Jonathan Kelley
2d2e9dc56a
Merge pull request #2033 from DioxusLabs/jk/kick-sf-on-client
Kick server futures on the client to track reactivity
2024-03-08 18:09:10 -08:00
Jonathan Kelley
47e7f2fd41
Kick server futures on the client 2024-03-08 16:52:03 -08:00
Jonathan Kelley
822fc79531
Merge pull request #2030 from rtretter/main
fixed clippy failing in non-server environment
2024-03-08 15:01:55 -08:00
Jonathan Kelley
dd109f20d2
fix #1979: generated Owned impl for the props builder was using the wrong generics. (#2027)
This commit fixes the owned impl to use the original generics rather than the build generics.
2024-03-08 16:49:56 -06:00
rtretter
47cfd212c9 fixed clippy failing in non-server environment 2024-03-08 23:45:50 +01:00
Evan Almloff
bbc81b8f9c fix memos in children; introduce isomorphic spawn 2024-03-08 16:40:31 -06:00
Jonathan Kelley
7461a14cb4
fix 2020: return None if the root nodes are empty in rsx (#2026) 2024-03-08 15:57:46 -06:00
Robin Tretter
8eda67ecb2
added hot-reload as config option with default to true (#2024) 2024-03-08 14:54:03 -06:00
Evan Almloff
f8a8ee3e29 fix clippy 2024-03-08 12:45:23 -06:00
Evan Almloff
ffc49530f6 implement readable and callable for all structs in the hooks crate 2024-03-08 11:17:28 -06:00
Evan Almloff
98158bdc6f fix headless tests 2024-03-08 10:54:02 -06:00
Evan Almloff
4bc2f4a713 add more docs around lifetime downcasting 2024-03-08 10:46:34 -06:00
Evan Almloff
5f9e5f607b rename take to manually drop 2024-03-08 10:35:27 -06:00
Evan Almloff
60a84956d1 restore lifetime checking for signals 2024-03-08 10:32:57 -06:00
Jonathan Kelley
295c29db5d
Merge pull request #2005 from ealmloff/fix-suspense
Only poll suspended futures, lazy memos
2024-03-07 23:43:52 -08:00
Evan Almloff
9bad802beb clean up dirty scopes module 2024-03-07 21:04:48 -06:00
Evan Almloff
cca92b9fed remove extra logging 2024-03-07 20:51:19 -06:00
Evan Almloff
e72bf5820f reuse remove_task in handle_task_wakeup 2024-03-07 20:47:43 -06:00
Jonathan Kelley
b05ea0b202
FIx: pushroot should actually push the right root on native mutations 2024-03-07 18:02:44 -08:00
Jonathan Kelley
3e5edff724
Fix key errors in autofmt crate 2024-03-07 16:21:51 -08:00
Jonathan Kelley
22e82fc140
undo >=1 check on roots 2024-03-07 16:11:44 -08:00
Jonathan Kelley
ae352f8958
Feat: reject invalid keys 2024-03-07 16:03:00 -08:00
Evan Almloff
3d7f419636 fix memos during suspense 2024-03-07 11:49:51 -06:00
Jonathan Kelley
feb80ce509
remove old interpreter 2024-03-06 20:24:37 -08:00
Jonathan Kelley
c3df8c55e3
fix windows, enable tokio for examples on wasm 2024-03-06 19:59:47 -08:00
Jonathan Kelley
bb5ecd779f
clean up some examples, ensuring stuff works 2024-03-06 19:50:07 -08:00
Jonathan Kelley
2995647e99
trim line feeds 2024-03-06 19:18:41 -08:00
Jonathan Kelley
c99c07db0c
warn 2024-03-06 18:59:27 -08:00
Jonathan Kelley
a2907d138d
dont even hash it! 2024-03-06 18:59:15 -08:00
Jonathan Kelley
c75aa48c74
add warning 2024-03-06 18:43:19 -08:00
Jonathan Kelley
f073322bb3
use md5 instead 2024-03-06 18:43:07 -08:00
Jonathan Kelley
f65ded2cb4
raw bytes instead of str 2024-03-06 18:16:09 -08:00
Jonathan Kelley
99748a611c
move debug 2024-03-06 17:59:05 -08:00
Jonathan Kelley
8df87c64c0
debug windows build 2024-03-06 17:54:20 -08:00
Jonathan Kelley
e02e41d6f1
Attempt even dumber hashing mechanism 2024-03-06 17:43:43 -08:00
Jonathan Kelley
60616d0ba7
fix liveview 2024-03-06 17:26:52 -08:00
Jonathan Kelley
1f6195b2ec
try new hashing strategy 2024-03-06 17:05:03 -08:00
Jonathan Kelley
08d054f5c8
Merge branch 'main' into jk/fix-form-inputs 2024-03-06 16:43:33 -08:00
Jonathan Kelley
81f38a0bc5
cfg out globalhotkey 2024-03-06 16:42:45 -08:00
rtretter
3ffb1facf3 search for first valid platform in features 2024-03-06 21:38:11 +01:00
Jonathan Kelley
f7f416ee3a
Fix hydration 2024-03-06 12:19:59 -08:00
rtretter
f62c81ea0d added automatic platform detection to cli if none is passed 2024-03-06 21:16:51 +01:00
Evan Almloff
492f0329bf remove flume, implement lazier memos 2024-03-06 11:38:28 -06:00
Jonathan Kelley
713ab98dd3
fix els bug 2024-03-06 02:08:18 -08:00
Jonathan Kelley
34b5bc927d
fix sledgehammer bindings on web 2024-03-06 02:04:56 -08:00
Jonathan Kelley
95d7012c8d
fix hashing system, bump wasm-bindgen 2024-03-06 02:00:24 -08:00
Jonathan Kelley
fa04edfed7
use hashmap defaulthasher 2024-03-06 00:11:21 -08:00
Jonathan Kelley
73e7c3e560
Attempt order invariance 2024-03-06 00:05:42 -08:00
Jonathan Kelley
45b824346c
attempt fix on inter 2024-03-05 23:49:27 -08:00
Jonathan Kelley
4b2e426958
clippy, and don't hash invisible files for ts generation 2024-03-05 22:38:38 -08:00
Evan Almloff
716eb11426 update suspend in use_server_future 2024-03-05 18:39:32 -06:00
Evan Almloff
c9603ea984 only poll suspended futures 2024-03-05 18:24:01 -06:00
Jonathan Kelley
39d6580eca
use git version of sledgehammer 2024-03-05 15:14:07 -08:00
Jonathan Kelley
624e58bd78
native file drop 2024-03-05 14:11:12 -08:00
Jonathan Kelley
78d16536a7
wip: native file handles when dropping 🎉 2024-03-05 13:57:28 -08:00
Jonathan Kelley
403e8e2f49
Clean up file uploads in desktop/liveview, remove minify 2024-03-05 13:00:27 -08:00
Jonathan Kelley
56a365742c
clean up native js more 2024-03-05 12:08:33 -08:00
Jonathan Kelley
44833c471f
Merge branch 'main' into jk/fix-form-inputs 2024-03-05 11:18:56 -08:00
Jonathan Kelley
608fec59e5
Merge pull request #1993 from DioxusLabs/fix-effect
Fix effect ordering and futures being run after scopes are dropped
2024-03-05 11:18:17 -08:00
Jonathan Kelley
b751674354
Web works with the js structure 2024-03-05 11:16:34 -08:00
Evan Almloff
287416cfa7 rename flush_sync to wait_for_next_render 2024-03-04 19:52:17 -06:00
Jonathan Kelley
16b38e339d
Merge branch 'main' into jk/fix-form-inputs 2024-03-04 17:46:38 -08:00
Jonathan Kelley
22266cc560
Switch to bun, clean up web implementation 2024-03-04 15:23:48 -08:00
Jonathan Kelley
38a2c04e38
Merge pull request #1983 from marc2332/fix/update-dioxus-router-docs
fix: Update `dioxus-router` docs
2024-03-04 14:21:52 -08:00
Jonathan Kelley
62d79747aa
Merge pull request #1987 from ealmloff/fix-fullstack-history
Fix fullstack history
2024-03-04 14:19:38 -08:00
Evan Almloff
2e3a730ed5 fix clippy 2024-03-04 16:10:04 -06:00
Evan Almloff
568631e331 test signal drops 2024-03-04 16:02:19 -06:00
Evan Almloff
8322b508a7 fix signals leaking memory 2024-03-04 15:51:14 -06:00
Evan Almloff
3827378f68 Merge branch 'main' into fix-effect 2024-03-04 15:40:37 -06:00
Evan Almloff
b42992bad1 add more internal documentation about tasks 2024-03-04 15:38:28 -06:00
Evan Almloff
fc7efd8006 test child future drop behavior 2024-03-04 15:26:16 -06:00
Evan Almloff
797feb5657 remove logging, clean up some code, and fix effect test 2024-03-04 15:09:31 -06:00
Evan Almloff
c4b8ebc1cf separate task and scope tasks 2024-03-04 13:04:22 -06:00
Evan Almloff
78b9b157dc fix formatting 2024-03-04 12:04:09 -06:00
Jonathan Kelley
199173a409
fix navigating when files are dropped 2024-03-01 23:37:46 -08:00
Jonathan Kelley
0ff0eb7846
Use the platform as the base interpreter instead of trying to extend it 2024-03-01 14:23:53 -08:00
Evan Almloff
a14e5be7ad Fix effect ordering after reruns 2024-03-01 12:46:07 -06:00
Evan Almloff
26f5fb80cb clean up the task queue 2024-03-01 12:18:42 -06:00
Jeremy Arnold
9ae3d14e67
Add tracing to virtual_dom (#1949)
Address #1161; Add tracing to virtual dom:

- Added a dependency on [tracing-fluent-assertions](https://github.com/tobz/tracing-fluent-assertions) for test cases
- Added a test case showing tracing


example log
```
2024-02-28T21:52:25.266474Z TRACE dioxus_core::scope_context: providing context alloc::rc::Rc<dioxus_core::error_boundary::ErrorBoundary> (TypeId { t: 86211292795840746005296084033382154959 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::virtual_dom::VirtualDom::new

  2024-02-28T21:52:25.266651Z TRACE dioxus_core::scope_context: looking for context generational_box::Owner<generational_box::sync::SyncStorage> (TypeId { t: 16187079142358387300491255137481079601 }) in app
    at packages/core/src/scope_context.rs:106
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266662Z TRACE dioxus_core::scope_context: context generational_box::Owner<generational_box::sync::SyncStorage> (TypeId { t: 16187079142358387300491255137481079601 }) not found
    at packages/core/src/scope_context.rs:140
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266671Z TRACE dioxus_core::scope_context: providing context generational_box::Owner<generational_box::sync::SyncStorage> (TypeId { t: 16187079142358387300491255137481079601 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266713Z TRACE dioxus_core::scope_context: providing context dioxus_signals::reactive_context::ReactiveContext (TypeId { t: 86476382904980360086558195405008306005 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266723Z TRACE dioxus_core::scope_context: looking for context generational_box::Owner (TypeId { t: 87785542931436862771411509553978749471 }) in app
    at packages/core/src/scope_context.rs:106
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266730Z TRACE dioxus_core::scope_context: context generational_box::Owner (TypeId { t: 87785542931436862771411509553978749471 }) not found
    at packages/core/src/scope_context.rs:140
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266769Z TRACE dioxus_core::scope_context: providing context generational_box::Owner (TypeId { t: 87785542931436862771411509553978749471 }) in app
    at packages/core/src/scope_context.rs:189
    in dioxus_core::scope_arena::render with scope: app
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266828Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:60:5:1728", roots: [Element { tag: "div", namespace: None, attrs: [], children: [Element { tag: "button", namespace: None, attrs: [Dynamic { id: 0 }], children: [Text { text: "+" }] }, Element { tag: "button", namespace: None, attrs: [Dynamic { id: 1 }], children: [Text { text: "-" }] }, Element { tag: "ul", namespace: None, attrs: [], children: [Dynamic { id: 0 }] }] }], node_paths: [[0, 2, 0]], attr_paths: [[0, 0], [0, 1]] } }, dynamic_nodes: [Placeholder(VPlaceholder)], dynamic_attrs: [[Attribute { name: "onclick", value: Listener, namespace: None, volatile: false }], [Attribute { name: "onclick", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(0) } }, mount: MountId(0)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::rebuild

  2024-02-28T21:52:25.266896Z TRACE dioxus_core::virtual_dom: Calling 1 listeners
    at packages/core/src/virtual_dom.rs:695
    in dioxus_core::virtual_dom::VirtualDom::handle_bubbling_event with parent: Some(ElementRef { path: ElementPath { path: [0, 0] }, mount: MountId(0) }), name: "click"
    in dioxus_core::virtual_dom::VirtualDom::handle_event with name: "click", data: Any { .. }, element: ElementId(2), bubbles: true

  2024-02-28T21:52:25.266934Z TRACE dioxus_core::virtual_dom: Marking scope ScopeId(0) (app) as dirty
    at packages/core/src/virtual_dom.rs:379
    in dioxus_core::virtual_dom::VirtualDom::process_events

  2024-02-28T21:52:25.266997Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:71:37:2059", roots: [Dynamic { id: 0 }], node_paths: [[0]], attr_paths: [] } }, dynamic_nodes: [Component(VComponent { name: "ChildExample" })], dynamic_attrs: [] }, mount: Cell { value: MountId(1) } }, mount: MountId(1)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267026Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:81:5:2238", roots: [Element { tag: "li", namespace: None, attrs: [Dynamic { id: 0 }], children: [DynamicText { id: 0 }] }], node_paths: [[0, 0]], attr_paths: [[0]] } }, dynamic_nodes: [Text(VText { value: "0" })], dynamic_attrs: [[Attribute { name: "onmouseover", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(2) } }, mount: MountId(2)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267061Z TRACE dioxus_core::virtual_dom: Calling 1 listeners
    at packages/core/src/virtual_dom.rs:695
    in dioxus_core::virtual_dom::VirtualDom::handle_bubbling_event with parent: Some(ElementRef { path: ElementPath { path: [0, 0] }, mount: MountId(0) }), name: "click"
    in dioxus_core::virtual_dom::VirtualDom::handle_event with name: "click", data: Any { .. }, element: ElementId(2), bubbles: true

  2024-02-28T21:52:25.267084Z TRACE dioxus_core::virtual_dom: Marking scope ScopeId(0) (app) as dirty
    at packages/core/src/virtual_dom.rs:379
    in dioxus_core::virtual_dom::VirtualDom::process_events

  2024-02-28T21:52:25.267131Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:71:37:2059", roots: [Dynamic { id: 0 }], node_paths: [[0]], attr_paths: [] } }, dynamic_nodes: [Component(VComponent { name: "ChildExample" })], dynamic_attrs: [] }, mount: Cell { value: MountId(3) } }, mount: MountId(3)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267157Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:81:5:2238", roots: [Element { tag: "li", namespace: None, attrs: [Dynamic { id: 0 }], children: [DynamicText { id: 0 }] }], node_paths: [[0, 0]], attr_paths: [[0]] } }, dynamic_nodes: [Text(VText { value: "1" })], dynamic_attrs: [[Attribute { name: "onmouseover", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(4) } }, mount: MountId(4)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267206Z TRACE dioxus_core::virtual_dom: Calling 1 listeners
    at packages/core/src/virtual_dom.rs:695
    in dioxus_core::virtual_dom::VirtualDom::handle_bubbling_event with parent: Some(ElementRef { path: ElementPath { path: [0, 0] }, mount: MountId(0) }), name: "click"
    in dioxus_core::virtual_dom::VirtualDom::handle_event with name: "click", data: Any { .. }, element: ElementId(2), bubbles: true

  2024-02-28T21:52:25.267229Z TRACE dioxus_core::virtual_dom: Marking scope ScopeId(0) (app) as dirty
    at packages/core/src/virtual_dom.rs:379
    in dioxus_core::virtual_dom::VirtualDom::process_events

  2024-02-28T21:52:25.267274Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:71:37:2059", roots: [Dynamic { id: 0 }], node_paths: [[0]], attr_paths: [] } }, dynamic_nodes: [Component(VComponent { name: "ChildExample" })], dynamic_attrs: [] }, mount: Cell { value: MountId(5) } }, mount: MountId(5)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate

  2024-02-28T21:52:25.267297Z  INFO dioxus_core::diff::node: creating template, self: VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "packages/core/tests/tracing.rs:81:5:2238", roots: [Element { tag: "li", namespace: None, attrs: [Dynamic { id: 0 }], children: [DynamicText { id: 0 }] }], node_paths: [[0, 0]], attr_paths: [[0]] } }, dynamic_nodes: [Text(VText { value: "2" })], dynamic_attrs: [[Attribute { name: "onmouseover", value: Listener, namespace: None, volatile: false }]] }, mount: Cell { value: MountId(6) } }, mount: MountId(6)
    at packages/core/src/diff/node.rs:547
    in dioxus_core::virtual_dom::VirtualDom::render_immediate
```
2024-02-29 17:49:35 -06:00
Jonathan Kelley
d9cb6dd1ec
Merge pull request #1985 from fdgStilla/fix-svg-image
Restore image element under svg element
2024-02-29 12:31:59 -08:00
Jonathan Kelley
d61c3fab20
Merge branch 'main' into debug-subscriptions 2024-02-29 12:30:27 -08:00
Evan Almloff
c7ffdc7b29 rerun tasks in the same order as components 2024-02-29 11:43:07 -06:00
Evan Almloff
55f308363d expose non-blocking functions to read and write to the fullstack request 2024-02-29 10:39:02 -06:00
Evan Almloff
8a969a26dc make interpreter extend the interpreter core class 2024-02-28 11:22:15 -06:00
Evan Almloff
b58a3bb759
Merge pull request #1984 from agreyyy/main
Add better documentation to use_future, use_resource, use_effect and use_context
2024-02-28 08:55:38 -06:00
Andrey
1404009edc
touchups 2024-02-28 03:48:52 +00:00
andrey
70136b22ea Fix error in examples/future.rs comments, use_futures inline docs comments, also added clarification that Signal<T>.read() and Singal<T>() are the same thing 2024-02-28 11:42:04 +08:00
Jonathan Kelley
f196514b4f
change serialization 2024-02-27 19:23:36 -08:00
Jonathan Kelley
925d0617da
add glue to webonly interpreter 2024-02-27 16:39:40 -08:00
Jonathan Kelley
774fba85e4
track the configs too 2024-02-27 16:36:25 -08:00
Jonathan Kelley
f447f01403
Commit js 2024-02-27 16:33:34 -08:00
Jonathan Kelley
4b64894fc5
Add proper bundling to tsc 2024-02-27 16:33:18 -08:00
Evan Almloff
fe839ab347 Move some global variables in the interpreter into locals in the interpreter 2024-02-27 15:15:12 -06:00
Jonathan Kelley
bdacca0dfb
use this. on the unified bindings 2024-02-27 12:55:47 -08:00
Jonathan Kelley
206a48257b
Merge branch 'main' into jk/fix-form-inputs 2024-02-27 12:50:57 -08:00
Jonathan Kelley
0c4c0e70e5
Merge pull request #1986 from ealmloff/bump-sledgehammer-bindgen
Bump the sledgehammer bindgen version
2024-02-27 12:33:10 -08:00
Jonathan Kelley
b5447c162f
extend interpreter base class with platform methods 2024-02-27 12:31:11 -08:00
Evan Almloff
acbc1f6a47 fix headless tests on desktop 2024-02-27 12:19:34 -06:00
Evan Almloff
271b53e866 Update the liveview renderer to the new sledgehammer version 2024-02-27 11:46:40 -06:00
Evan Almloff
f7209e123f
restore the docs for the image element 2024-02-27 10:36:45 -06:00
Evan Almloff
93ee53454f bump the sledgehammer bindgen version 2024-02-27 10:35:16 -06:00
Florian de Gaulejac
5dad13ac74 Restore image element under svg element 2024-02-27 09:18:18 +01:00
andrey
5a73147d69 added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks 2024-02-27 10:36:05 +08:00
andrey
24ebc1e628 added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks 2024-02-27 10:32:55 +08:00
andrey
df0d45be48 added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks 2024-02-27 10:15:38 +08:00
marc2332
97478bcb13
fix unrelated to dioxus-router 2024-02-26 21:50:16 +01:00
marc2332
d3b9b764e0
fix: Update dioxus-router docs 2024-02-26 21:46:00 +01:00
Evan Almloff
277e4677e9 fix clippy 2024-02-26 11:49:05 -06:00
Evan Almloff
f539698963 add debug information for signal subscriptions 2024-02-26 11:46:01 -06:00
tigerros
e217a957dc fix 2024-02-24 14:36:02 +01:00
tigerros
24e8ac2ad3 fix warning 2024-02-24 13:30:50 +01:00
Jonathan Kelley
7f60010c1e
set up a typescript pipeline for interpreter 2024-02-23 18:52:21 -08:00
Jonathan Kelley
53cafefdef
wip: add tests and slightly refactor interpreter code 2024-02-23 17:38:04 -08:00
Jonathan Kelley
e0b0afc0a9
remove unsafe from tests in core 2024-02-22 17:46:51 -08:00
Jonathan Kelley
48d6a9acbb
Add logging to event checker 2024-02-22 13:55:29 -08:00
Jonathan Kelley
2ead6c6074
give longer window for events 2024-02-22 12:33:58 -08:00
Jonathan Kelley
8f70f8936f
wip: consolidate release 2024-02-21 19:36:33 -08:00
Jonathan Kelley
37b8fd0135
Merge branch 'main' into jk/05-pre 2024-02-21 16:15:33 -08:00
Jonathan Kelley
0ae0929691
fix: some simple formatting and version numbers 2024-02-21 14:32:19 -08:00
Jonathan Kelley
be29c1fdaa
chore: move all packages onto workspace versions 2024-02-21 14:30:13 -08:00
Jonathan Kelley
36fe5e30cb
chore: clean up cargo.tomls to enable releasing 2024-02-21 14:16:01 -08:00
Florian de Gaulejac
83cd04fd17 Fix name for SVG attribute "type" 2024-02-21 15:31:10 +01:00
Evan Almloff
36ae7ec12e wrap fullstack rebuilds in block in place 2024-02-19 14:59:58 -06:00
Evan Almloff
c4a4a31eec Merge branch 'master' into pr/atty303/1948 2024-02-19 08:35:31 -06:00
Evan Almloff
6724847685 swap out web-time for chrono 2024-02-19 08:03:29 -06:00
Jonathan Kelley
ebdb98bff2
Make clippy happy, pass tests 2024-02-18 21:08:48 -08:00
Jonathan Kelley
d732269b8f
backend proxy tests almost work! 2024-02-18 09:45:27 -08:00
Evan Almloff
14b4af4bbc fix cargo check all features except the router 2024-02-16 16:22:13 -06:00
Evan Almloff
2952578a2e add a streaming example 2024-02-16 16:04:12 -06:00
Evan Almloff
31a7d2ac04 remove the nightly feature from the server macro crate 2024-02-16 15:27:48 -06:00
Evan Almloff
e7d8a25d17 get the dioxus CLI compiling 2024-02-16 14:55:44 -06:00
Evan Almloff
30af559275 add tracing to server function registration 2024-02-16 14:19:36 -06:00
Koji AGAWA
1f0e03ca19 feat(fullstack): support wasm target 2024-02-17 05:12:33 +09:00
Evan Almloff
194d90e66f fix a few CLI errors 2024-02-16 12:39:36 -06:00
Evan Almloff
e745212157 bump server functions 2024-02-16 12:17:01 -06:00
Evan Almloff
6879507652 fix a few warnings when checking with all features 2024-02-16 09:09:35 -06:00
Evan Almloff
0ef29b7d75 reorganize fullstack 2024-02-16 09:03:35 -06:00
Jonathan Kelley
2763adb2d3
clean up workflow, fix some more axum stuff 2024-02-15 19:03:46 -08:00
Jonathan Kelley
64a321eacc
Get more axum stuff upgraded to 0.7 2024-02-15 18:59:57 -08:00
Jonathan Kelley
214a907adc
Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Jonathan Kelley
ea34eee20a
Remove ssr eval from fullstack 2024-02-14 17:00:12 -08:00
Jonathan Kelley
d1d70995c4
Remove eval from incremental 2024-02-14 16:51:05 -08:00
Jonathan Kelley
22a5acfcb8
Remove SSR evalulator 2024-02-14 16:38:05 -08:00
Jonathan Kelley
cbadea022a
Eval should never return an error
Only awaiting eval should error.
Eval should always be available, even if using its methods returns errors.
2024-02-14 15:13:15 -08:00
Jonathan Kelley
1145ed7534
Merge pull request #1933 from ealmloff/restore-rendering-check
Only subscribe scopes to signals when rendering
2024-02-14 14:29:08 -08:00
Jonathan Kelley
77c80ea715
Merge pull request #1939 from DioxusLabs/jk/examples-overhaul
Add more examples, document examples, add css to most examples
2024-02-14 14:28:56 -08:00
Evan Almloff
d1c0e0a5e0 comment out the memo tests for now 2024-02-14 15:55:19 -06:00
Jonathan Kelley
60b78668ac
Merge branch 'master' into jk/examples-overhaul 2024-02-14 12:33:27 -08:00
Jonathan Kelley
bdbae8ccb0
Update examples, add css 2024-02-14 12:33:07 -08:00
Evan Almloff
05a6dda89c fix formatting 2024-02-14 12:13:54 -06:00
Evan Almloff
649d264a38 fix clippy 2024-02-14 12:13:21 -06:00
Evan Almloff
78ef453888 simplify memo test failure 2024-02-14 11:38:09 -06:00
Evan Almloff
5f8d0f6c40 add a third party feature for freya 2024-02-14 09:56:29 -06:00
Evan Almloff
f42bc61288 warn the user if they try to launch without a renderer selected 2024-02-14 09:50:55 -06:00
Evan Almloff
48751d2f98 only subscribe scopes to signals when rendering 2024-02-14 09:33:22 -06:00
Evan Almloff
476b2ac88a fix client side suspense 2024-02-12 08:56:27 -06:00
Evan Almloff
8e007cc137 fix the web renderer panicing when the hot reload connection fails 2024-02-11 13:35:34 -06:00
Evan Almloff
6c6df1e2fd
Merge pull request #1917 from spookyvision/patch-1
fix `HasFileData` for `WebDragData`
2024-02-10 14:52:02 -06:00
Anatol Ulrich
a44f5fda2c remove unused element field from WebDragData 2024-02-09 22:09:58 +01:00
Evan Almloff
f4651cecb8
Merge pull request #1916 from DogeDark/master
Add Prerelease Doc Generation
2024-02-09 12:45:59 -06:00
Evan Almloff
162b033c36 provide feature hints for the dioxus crate as well 2024-02-09 12:23:57 -06:00
Evan Almloff
b4d17abfc1 document all features 2024-02-09 12:15:59 -06:00
Anatol Ulrich
6ca877eb6d
fix HasFileData for WebDragData 2024-02-09 12:02:32 +01:00
Miles Murgaw
3c1028c523 fix: prerelease doc 2024-02-08 17:53:45 -05:00
Evan Almloff
d1ed15c2ac fix autofmt tests 2024-02-08 10:13:57 -06:00
Evan Almloff
23e15ee9c8 change rustfmt flag to all_code now that we don't use rustfmt 2024-02-08 10:03:52 -06:00
Evan Almloff
b88c66d8df report syn parse errors to the user 2024-02-08 10:00:25 -06:00
Evan Almloff
65d4f922b4 Merge branch 'master' into pr/Dangerised/1902 2024-02-08 09:41:08 -06:00
Jonathan Kelley
53343bfd19
Merge pull request #1910 from ealmloff/readable-map
Implement Readable for mapped signal
2024-02-07 18:10:02 -08:00
Jonathan Kelley
25d103c1a5
Merge pull request #1908 from ealmloff/fix-assets
Fix manganis support for dioxus desktop
2024-02-07 12:17:12 -08:00
Evan Almloff
cb113cf4b6 Fix external links in dioxus desktop 2024-02-07 11:35:50 -06:00
Evan Almloff
1bbecc3c70 restore dioxus signals dependencies 2024-02-07 11:31:13 -06:00
Evan Almloff
8689509eb5 erase the original readable type 2024-02-07 11:19:39 -06:00
Evan Almloff
c8937cb4df make mapped signal readable 2024-02-07 09:35:06 -06:00
Evan Almloff
1af8f56e89 make target an associated type 2024-02-07 08:53:21 -06:00
Dangerise
c89a4b37dc remove the link in comment and unused error variant 2024-02-07 22:35:55 +08:00
Evan Almloff
3270f7341a fix manganis support for dioxus desktop 2024-02-06 11:39:30 -06:00
Evan Almloff
1909b05412 Merge branch 'master' into pr/Andrew15-5/1903 2024-02-06 10:28:49 -06:00
Evan Almloff
7f32809a96 use out_dir in a few more places 2024-02-06 10:27:26 -06:00
Dangerise
82fc7acaa5 remove debug print 2024-02-06 21:04:37 +08:00
Dangerise
71125c22e0 remove unused import 2024-02-06 21:03:04 +08:00
Dangerise
d170304a59 remove dead code 2024-02-06 21:01:33 +08:00
Dangerise
192fa3471b clippy fix 2024-02-06 20:56:12 +08:00
Dangerise
f40e2f3cef replace gitignore with ignore 2024-02-06 20:53:28 +08:00
Jonathan Kelley
2ade193a5b
Fix shortcut by wrapping callback 2024-02-05 18:50:13 -08:00
Jonathan Kelley
f2ec5c5cb8
fix headless event counter 2024-02-05 17:58:13 -08:00
Jonathan Kelley
d2346cc477
maybe windows needs even longer for windows to open 2024-02-05 17:15:06 -08:00
Evan Almloff
72ae13ccb5 fix the double click event 2024-02-05 18:24:21 -06:00
Evan Almloff
f8003fd9ea Fix the history button props 2024-02-05 17:51:31 -06:00
Jonathan Kelley
4f8868d43d
Merge pull request #1791 from ealmloff/breaking
Remove scope, use_state, use_ref, bump allocator and make everything 'static
2024-02-05 14:19:47 -08:00
Evan Almloff
9988fa46b9 fix fullstack playwright tests 2024-02-05 15:41:16 -06:00
Andrew Voynov
ea9622a75c
fix(serve): fixed long rebuilds with dx serve 2024-02-06 00:27:45 +03:00
Evan Almloff
c431429448 fix web playwright tests 2024-02-05 15:25:51 -06:00
Evan Almloff
b4f2a925c7 fix fullstack playwright test features 2024-02-05 15:04:49 -06:00
Jonathan Kelley
52e14e8ece
dont commit wasm 2024-02-05 12:46:01 -08:00
Jonathan Kelley
bcbbd4a687
remove wasm 2024-02-05 12:45:47 -08:00
Jonathan Kelley
7e54039ed2
fix make tests 2024-02-05 12:24:59 -08:00
Evan Almloff
b63c14fab8 change config flags from ssr to server to match the features 2024-02-05 14:20:15 -06:00
Jonathan Kelley
69e4ebe4ed
Fix suspense on resource 2024-02-05 11:59:50 -08:00
Jonathan Kelley
13cc912aeb
remove playwright report 2024-02-05 11:55:09 -08:00
Evan Almloff
61e2478fbf
Merge pull request #1897 from Andrew15-5/fix-liveview-adapter-comments
docs(liveview): fixed adapter comments
2024-02-05 12:41:18 -06:00
Evan Almloff
417cea7569
Merge pull request #1898 from Andrew15-5/fix-fullstack-cli-build
Now fullstack client uses correct config via `dx build`
2024-02-05 09:28:45 -06:00
Evan Almloff
b1f617acd3
Merge pull request #1899 from Andrew15-5/fix-router-macro-typo
chore(docs): fixed typo in router-macro
2024-02-05 09:27:40 -06:00
Evan Almloff
356497df4e fix some clippy lints 2024-02-05 08:17:25 -06:00
Evan Almloff
91fea15cdc don't expose the signal scope subscriber API publicly 2024-02-05 08:13:52 -06:00
Evan Almloff
30bac267c9 simplify reactive context and expose less signal internals 2024-02-05 08:05:27 -06:00
Dangerise
2eec2bc673 add rustfmt support 2024-02-05 21:51:49 +08:00
Evan Almloff
8324f5290a rename rc to reactive context to avoid confusion with Rc 2024-02-05 07:24:31 -06:00
Evan Almloff
26e4651e9f fix infinite recursion in reactive context 2024-02-05 07:23:32 -06:00
Jonathan Kelley
26378631e0
hide non-public type 2024-02-04 23:20:20 -08:00
Jonathan Kelley
4a7fe938ad
Make clippy happy 2024-02-04 23:03:52 -08:00
Andrew Voynov
009238b068
feat(cli): added short release build option
Same as `cargo build` has `-r` now `dx build` and `dx bundle` also have
it. Since user probably wants to use these commands for production-ready
artifacts, the `--release` option is probably used often, same as with
`cargo build`. This allow users to use the same `build -r` "pattern".
2024-02-04 23:36:43 +03:00
Andrew Voynov
8beb3c7893
chore(docs): fixed typo in router-macro 2024-02-04 22:39:04 +03:00
Andrew Voynov
62b0f876f2
fix(build): now fullstack client uses correct config 2024-02-04 18:56:59 +03:00
Jonathan Kelley
7d78e5e250
Fix warnings and compile errors 2024-02-03 13:10:16 -08:00
Andrew Voynov
c51e594fe3
docs(liveview): fixed adapter comments
Fixed some typos; added some word capitalization, periods, and ``.
2024-02-03 22:23:38 +03:00
Evan Almloff
e767e49d5e switch to server instead of ssr everywhere 2024-02-02 19:32:18 -06:00
Jonathan Kelley
a3d6e9d07a
fix hotreload cfg on release builds 2024-02-02 16:17:52 -08:00
Jonathan Kelley
64365cd361
make sure reactive context works across threads 2024-02-02 16:13:06 -08:00
Evan Almloff
1afada528d fix user server future 2024-02-02 18:01:57 -06:00
Evan Almloff
1c4e1d84ea serialize data in the server and deserialize data in the client 2024-02-02 17:23:00 -06:00
Jonathan Kelley
6bde8b0ce0
fix use_effect_with_deps 2024-02-02 14:49:33 -08:00
Jonathan Kelley
e8182b105e
flush sync in global memo 2024-02-02 14:36:03 -08:00
Jonathan Kelley
d28cc9c0cf
remove changed log in maybe_sync memo, flush sync 2024-02-02 14:35:55 -08:00
Jonathan Kelley
3295935de7
Fix panic on pausing dead tasks 2024-02-02 14:33:02 -08:00
Jonathan Kelley
8a38a41512
fix use_future todos! 2024-02-02 14:17:53 -08:00
Jonathan Kelley
f44b72f5e1
server_future uses use_resource 2024-02-02 14:08:21 -08:00
Jonathan Kelley
0fd7799bc2
disable use_future on the server 2024-02-02 13:36:19 -08:00
Jonathan Kelley
8f70a84c70
Use futures_util mutex instead of flume for sending flush lock wakeups 2024-02-02 13:09:26 -08:00
Evan Almloff
38bdab880d only give out a ReadOnlySignal from async resources 2024-02-02 15:00:05 -06:00
Evan Almloff
308226996c actually derive the copy trait for eval 2024-02-02 14:48:31 -06:00
Evan Almloff
a789d6a64e make eval copy 2024-02-02 14:47:59 -06:00
Jonathan Kelley
894a79d3df
clear subscriber method 2024-02-01 13:21:53 -08:00
Jonathan Kelley
dd06705ff1
implement use_async_memo with reactive context 2024-02-01 13:21:53 -08:00
Jonathan Kelley
7c2947a131
Implement effects using reactivecontext 2024-02-01 13:21:52 -08:00
Jonathan Kelley
968f24a7b3
wip: reactive context instead of effect 2024-02-01 13:21:52 -08:00
Jonathan Kelley
0c71b95e82
skeleton of use_server_future with reactivity 2024-02-01 13:21:52 -08:00
Evan Almloff
b3ed337b6b fix SLEDGEHAMMER_JS import path in desktop 2024-02-01 10:55:10 -06:00
Evan Almloff
2371c9eed3 minify js at runtime in liveview 2024-02-01 10:10:05 -06:00
Evan Almloff
e2e0a934fd remove minified js from build scripts 2024-02-01 10:07:03 -06:00
Jonathan Kelley
44966efde2
use_future works 2024-01-31 16:56:58 -08:00
Jonathan Kelley
6818bbe10a
Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 2024-01-31 16:33:53 -08:00