Commit graph

573 commits

Author SHA1 Message Date
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
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
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
Jonathan Kelley
c466425b82 fix: remove logging 2022-03-04 13:17:03 -05:00
Jonathan Kelley
c19995fed9 fix: debug multistage edits in desktop 2022-03-04 13:17:01 -05:00
Jonathan Kelley
f2979cb12a feat: apply local router changes 2022-03-04 13:16:37 -05:00
Jonathan Kelley
e5b034c6a4 fix: don't propogate empty edits 2022-03-04 13:13:50 -05:00
Jonathan Kelley
0e09dda1be chore: add additional debugging to VNode fields 2022-03-04 13:13:29 -05: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
0883ff76e6 chore: convert debug to trace 2022-03-02 17:56:26 -05:00
Jonathan Kelley
e51b47d1fb chore: move macros around 2022-03-02 17:56:12 -05:00
Jonathan Kelley
b4c5b96980 chore: switch log to eprintln 2022-03-02 17:54:11 -05:00
Jonathan Kelley
42979d922b
Merge pull request #208 from DioxusLabs/jk/use-future-leak
feat: auto cancel tasks when scopes are dropped
2022-02-27 23:39:06 -05:00
Jonathan Kelley
e416e31bc7 feat: new spawn_forever for tasks that never die 2022-02-27 17:22:21 -05:00
Jonathan Kelley
70177ed49d feat: tasks are dropped when components are unmounted 2022-02-27 17:03:43 -05:00
Jonathan Kelley
a46bd8d6d7 Merge branch 'master' into jk/use-future-leak 2022-02-27 16:42:07 -05:00
Jonathan Kelley
35a3eaabdf fix: actually remove nodes in keyed_diff_middle 2022-02-27 14:49:47 -05:00
Jonathan Kelley
f77f8c8500 fmt 2022-02-26 17:38:05 -05:00
Jonathan Kelley
56517ef5de fix: merge conflicts 2022-02-26 17:35:23 -05:00
Jonathan Kelley
77631bff1f Merge branch 'master' into jk/documet-everything 2022-02-26 17:33:06 -05:00
Jonathan Kelley
d8718efed6
Merge pull request #275 from BarryYan/master
fix: add ns param for removeAttribute
2022-02-25 11:50:21 -05:00
Jonathan Kelley
3e474382c6 fix: clippy new lint 2022-02-25 00:35:25 -05:00
Shuanghui Yan
aa2d6b8d11 fix: format styles 2022-02-24 18:13:00 +08:00
Shuanghui Yan
2a6e6371e7 Merge remote-tracking branch 'upstream/master' 2022-02-24 18:08:21 +08:00
Ilya Maximov
144e0bd91f
feat: add send + sync for safety 2022-02-23 20:01:09 +01:00
Ilya Maximov
4ab54274ac
style: reformat... 2022-02-23 19:48:14 +01:00
Ilya Maximov
ff3d772756
feat: add a method to access the scheduler 2022-02-23 19:47:38 +01:00
Ilya Maximov
bda4a71a72
feat: change schedule_update's Rc to an Arc
BREAKING CHANGE
2022-02-23 19:47:17 +01: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
62df5f7097 docs: document the entire core crate 2022-02-20 17:37:46 -05:00
Jonathan Kelley
ce17574aa0 wip: add tracking for tasks 2022-02-04 18:05:55 -05:00
Jonathan Kelley
1913ccd61f chore: current_scope always panics 2022-02-03 00:35:10 -05:00
Jonathan Kelley
f7b3228ab2 fix: enable resume node for text and placeholder 2022-02-02 20:04:55 -05:00
Jonathan Kelley
bc43069884 fix: allow scopes and nodes to be missing 2022-02-02 19:04:37 -05:00
Jonathan Kelley
b2b2dae7e6 fix: diffing allows component reuse 2022-02-02 11:33:02 -05:00
Jonathan Kelley
94c1da8264 chore: clean up documentation in diffing algorithm 2022-02-01 15:00:36 -05:00
Jonathan Kelley
c4e6496d9d chore: enable a pedantic clippy on the diffing algorithm 2022-01-31 12:49:21 -05:00
Jonathan Kelley
06418f73db fix: element stack not being updated properly 2022-01-31 12:29:11 -05:00
Jonathan Kelley
923fb0701d fix: clippy 2022-01-31 03:34:52 -05:00
Jonathan Kelley
b4697fc9f9 chore: clean up some more of the scopes file 2022-01-31 03:27:43 -05:00
Jonathan Kelley
268b1b0c66 Merge branch 'master' into jk/debugging-diff 2022-01-31 03:23:35 -05:00
Jonathan Kelley
120ee18368 chore: improve debugability of fcptrs and vcomponents
this commit changes the fc slot type from a thin pointer to a c pointer.
this lets us provide frame inspection of components using backtrace.
2022-01-31 03:22:34 -05:00
Jonathan Kelley
9dda7b168b chore: clean up scopes 2022-01-31 03:04:47 -05:00
Jonathan Kelley
a4ea0ba4fe chore: undo dirty_scopes rename 2022-01-31 02:52:40 -05:00
Jonathan Kelley
0820e18d3d feat: make component name accessible 2022-01-31 02:49:37 -05:00
Jonathan Kelley
00aa0e5e86 fmt: apply formatting just to tests 2022-01-31 02:44:16 -05:00
Jonathan Kelley
5bffbba682 fmt: apply cargofmt with new rules for lit structs 2022-01-31 02:40:12 -05:00
Jonathan Kelley
11f6b93889 fix: remove nodes is in a happier state 2022-01-31 02:33:16 -05:00
Jonathan Kelley
cbd471fa46 debugging: add some more debug tooling 2022-01-31 01:24:11 -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
3edf3e367f wip: debugging 2022-01-30 14:08:03 -05:00
Jonathan Kelley
578c1dc069 fix: enable default for any eventhandler 2022-01-29 10:42:06 -05:00
Jonathan Kelley
8056138f86 fix: explicit default for event handler
rust derives default of T: Default, even when that's not a necessary requirement

This fixes that
2022-01-29 10:27:40 -05:00
Jonathan Kelley
bad4b773b7 feat: add "spawn" method 2022-01-24 15:21:56 -05:00
Jonathan Kelley
2e4f765932 tweak: drop hooks before resetting bump arena 2022-01-24 12:21:24 -05:00
Jonathan Kelley
d9a07ddddb fix: provide_root_context on root scopes 2022-01-24 02:34:16 -05:00
Dave Rolsky
9e4ec43b1e Fix various typos and grammar nits
I also removed all trailing whitespace from lines since I have Emacs
configured to highlight this.
2022-01-21 21:43:43 -06:00
Jonathan Kelley
c8d528b3b1 fix: proprogation of root context 2022-01-21 09:29:41 -05:00
Jonathan Kelley
d2bd175143 feat: allow providing context to the root component 2022-01-21 00:37:52 -05:00
Jonathan Kelley
8d3ac3ff14
Merge pull request #107 from autarch/autarch/half-assed-router
A partial implementation of the router and associated bits
2022-01-18 00:01:34 -05:00
Jonathan Kelley
036a0ff49a docs: add comments for the Handler 2022-01-16 15:13:31 -05:00
Jonathan Kelley
e47ead5347 fix: allow eventhandler to derive default 2022-01-15 20:17:48 -05:00
Dave Rolsky
9b282d877b Don't expect all components to have a scope in ScopeArena.ensure_drop_safety
Not all components will be mounted when using a Router, so we cannot assume
all components have a scope.
2022-01-14 15:40:01 -06:00
Alexandre Kirszenberg
b6903bf558 Enable clippy 2022-01-08 16:35:26 +01:00
Jonathan Kelley
d11f322f55 docs: add title to doc comment 2022-01-07 12:12:33 -05:00
Jonathan Kelley
be9f1a52ad docs: better document the EventHandler type 2022-01-07 12:12:13 -05:00
Jonathan Kelley
c439b0ac7e fix: component pass thru events 2022-01-07 11:51:25 -05:00
Jonathan Kelley
bbb6ee10de feat: make hydration more robust 2022-01-07 00:33:09 -05:00
Jonathan Kelley
4aadec1e30 fix: ci and bug in setter 2022-01-05 22:15:19 -05:00
Jonathan Kelley
bd341f5571 fix: tests 2022-01-05 17:30:12 -05:00
Jonathan Kelley
427b126bc1 feat: add prevent default attribute and upgrade router 2022-01-05 16:34:24 -05:00
Jonathan Kelley
cb2782b4bb wip: memoize dom in the prescence of identical components 2022-01-05 00:27:22 -05:00
Jonathan Kelley
4f92ba4160 wip: bump all versions 2022-01-03 19:32:27 -05:00
Jonathan Kelley
2481cd05c2 fix: attempt to fix ice 2022-01-03 17:20:22 -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
4c85bcfdc8 awesome: arbitrary expressions excepted without braces 2021-12-30 03:14:47 -05:00
Jonathan Kelley
14961023f9 wip: polish some more things 2021-12-29 21:28:28 -05:00
Jonathan Kelley
3dc0e59876 fix: readme and examples syntax 2021-12-28 23:48:25 -05:00
Jonathan Kelley
a4f280d163 feat: more API updates 2021-12-28 23:20:01 -05:00
Jonathan Kelley
b3ac2ee3f7 wip: upgrade hooks 2021-12-27 15:03:43 -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
fa106be1f5 wip: clean it up a bit 2021-12-21 00:58:14 -05:00
Jonathan Kelley
b997b8ebbb feat: enable children properly 2021-12-21 00:46:10 -05:00
Jonathan Kelley
78d9056e35 feat: it works with a new bump each time!! 2021-12-20 23:31:33 -05:00
Jonathan Kelley
e2e4d431e1 wip: adjust memoization 2021-12-20 22:33:13 -05:00
Jonathan Kelley
934de21dd6 wip: miri stress tets 2021-12-18 23:03:59 -05:00
Jonathan Kelley
1c516aba6a chore: adjust semantics of placeholders and fragments 2021-12-18 15:49:30 -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
4de16c4779 docs: update local examples and docs to support new syntaxes 2021-12-15 15:56:53 -05:00
Jonathan Kelley
ded9696930 wip: fix ssr 2021-12-14 22:48:20 -05:00
Jonathan Kelley
2fd56e7619 wip: remove portals completely 2021-12-14 21:46:19 -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
8814977eee wip: docs 2021-11-30 22:48:05 -05:00
Jonathan Kelley
52c7154897 fix: really big bug around hooks 2021-11-29 11:10:40 -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
bab21a0aa1 wip: updates to router 2021-11-22 15:22:42 -05:00
Jonathan Kelley
a5f05d73ac wip: docs and router 2021-11-19 00:49:04 -05:00
Jonathan Kelley
8bf57dc21d chore: polish 2021-11-16 13:09:41 -05:00
Jonathan Kelley
25a8411485 wip: better desktop support 2021-11-16 01:25:38 -05:00
Jonathan Kelley
19df1bda10 feat: bubbling 2021-11-15 09:49:01 -05:00
Jonathan Kelley
9bd56ee499 wip: update readme 2021-11-12 16:06:33 -05:00
Jonathan Kelley
55e6dd9701 feat: wire tasks up 2021-11-12 01:36:33 -05:00
Jonathan Kelley
9d8c5ca5ab feat: it properly bubbles 2021-11-11 23:55:57 -05:00
Jonathan Kelley
11757ddf61 feat: fake bubbling 2021-11-11 22:18:16 -05:00
Jonathan Kelley
f2234068ba feat: events bubble now 2021-11-11 22:07:38 -05:00
Jonathan Kelley
b6262edd53 wip: bubbling reserves nodes 2021-11-11 21:50:08 -05:00
Jonathan Kelley
a21020ea57 wip: bubbling in progress 2021-11-11 21:34:20 -05:00
Jonathan Kelley
8acdd2ea83 feat: it compiles once more 2021-11-11 16:36:51 -05:00
Jonathan Kelley
74c6211408 feat: should be functional across the boar 2021-11-11 12:06:15 -05:00
Jonathan Kelley
c10c1f418b feat: wire up linked nodes 2021-11-11 11:49:07 -05:00
Jonathan Kelley
fd93ee89c1 feat: upgrade syntax 2021-11-10 17:09:52 -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
77686ba329 fix: it compiles again 2021-11-09 02:11:44 -05:00
Jonathan Kelley
fffc7ea061 wip: working on re-enabling components 2021-11-07 22:45:41 -05:00
Jonathan Kelley
15c31d545a wip: fix rebuild 2021-11-07 22:36:57 -05:00
Jonathan Kelley
2559740463 wip: clean up, use old approach to components 2021-11-07 20:59:09 -05:00
Jonathan Kelley
289d2f2518 wip: a few things left, slme cleanup 2021-11-07 09:58:19 -05:00
Jonathan Kelley
f33510b13f wip: dst drops properly 2021-11-07 01:57:13 -05:00
Jonathan Kelley
62ed9208a4 wip: dst nodes leak but work 2021-11-07 01:49:53 -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
fd0c384dac wip: it compiles cleanly 2021-11-07 00:06:00 -04:00
Jonathan Kelley
059294ab55 wip: more changes to scheduler 2021-11-06 23:23:56 -04: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
857c92f7f0 wip: compiling again with runtime safety 2021-11-06 20:59:46 -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