Commit graph

1077 commits

Author SHA1 Message Date
Evan Almloff
eb602fc29f clippy fix 2024-01-09 10:09:58 -06:00
Evan Almloff
aed29b1dec separate mount information from VNodes 2024-01-09 10:09:08 -06:00
Jonathan Kelley
b8fac44537
Clean up merge comments 2024-01-08 19:33:39 -08:00
Jonathan Kelley
23f7a37b06
Clean up merge conflicts 2024-01-08 19:31:57 -08:00
Jonathan Kelley
44a27bf8a3
Fix leak in render macro 2024-01-08 19:20:31 -08:00
Evan Almloff
0a35b5a670
fix render macro 2024-01-08 19:04:56 -08:00
Jonathan Kelley
6f15e0e924
Fix ci failure on unused cfg deps 2024-01-08 14:37:05 -08:00
Evan Almloff
194c9d43e3 fix merge 2024-01-08 14:51:35 -06:00
Jonathan Kelley
211dd64d92
Merge branch 'master' into issue-1179 2024-01-08 09:39:41 -08:00
Evan Almloff
aefa8a2431 use boxed slices instead of vecs where possible 2024-01-07 13:41:39 -06:00
Evan Almloff
ebacc7b709 make EventHandler partialeq 2024-01-07 09:17:54 -06:00
Evan Almloff
58c01253e5 make EventHandler clone 2024-01-07 09:17:26 -06:00
Evan Almloff
6630a81b0b fix VComponent::new 2024-01-07 09:14:44 -06:00
Evan Almloff
88e2da6c11 update the web renderer to the new dioxus core 2024-01-06 16:44:07 -06:00
Evan Almloff
f4af297777 merge upstream 2024-01-06 16:14:22 -06:00
Evan Almloff
502c80b0ad remove an unused import 2024-01-06 09:00:44 -06:00
Evan Almloff
5b6f9d6b80 fix merge 2024-01-06 08:58:49 -06:00
Evan Almloff
e5df83ceec Merge branch 'master' into pr/atty303/1349 2024-01-06 08:52:37 -06:00
Jonathan Kelley
a95f4dfe0d
fmt 2024-01-05 23:15:30 -08:00
Jonathan Kelley
8323e45970
Call handlers from context of a runtime and scope 2024-01-05 17:35:37 -08:00
Evan Almloff
4013341b6c hello world example working 2024-01-05 18:01:05 -06:00
Evan Almloff
3865f44081 make desktop compile 2024-01-05 14:39:45 -06:00
Jonathan Kelley
47306bf89b
Merge branch 'master' into jk/rework-desktop-crate 2024-01-05 12:22:59 -08:00
Jonathan Kelley
785b61a05e
Merge branch 'master' into intigrate-collect-assets 2024-01-05 12:13:31 -08:00
Evan Almloff
d90c71c508 move creation functions into the structs they are creating and unify user and system events 2024-01-05 13:18:48 -06:00
Evan Almloff
a4a9aa5224 create a global once function 2024-01-05 12:31:20 -06:00
Evan Almloff
a1676537ad restore drop scope 2024-01-05 12:28:45 -06:00
Evan Almloff
efd301a878 clippy fix 2024-01-05 12:26:12 -06:00
Evan Almloff
32b15fc851 make core compile 2024-01-05 12:25:18 -06:00
Evan Almloff
113b2c1529 port over more diffing + creation logic 2024-01-05 12:07:29 -06:00
Evan Almloff
717f38a5ec remove some unused unsafe blocks 2024-01-05 11:45:01 -06:00
Evan Almloff
35b461cd09 switch to a mutations trait to fix some lifetime issues 2024-01-05 11:44:07 -06:00
Evan Almloff
0c76770da0 remove a lot of unsafe 2024-01-05 10:57:05 -06:00
Evan Almloff
c70e2bfcb6 move diffing into the global runtime 2024-01-05 09:32:50 -06:00
Evan Almloff
f42ef3ef9d remove more lifetimes 2024-01-05 08:39:22 -06:00
Evan Almloff
7ffb204eac fix event tests in core 2024-01-04 19:36:10 -06:00
Evan Almloff
0388a5c1f4 fix formatting 2024-01-04 19:21:06 -06:00
Evan Almloff
0b40878fce fix cargo check 2024-01-04 19:11:32 -06:00
Evan Almloff
4f654d61b7 fix cargo check 2024-01-04 19:05:36 -06:00
Evan Almloff
dccfba12d8 Merge branch 'master' into events-2 2024-01-04 19:02:00 -06:00
Evan Almloff
b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Evan Almloff
3ad16ddd37 rip out more lifetimes 2024-01-04 18:33:01 -06:00
Jonathan Kelley
9a6d745339
Refactor desktop into App type 2024-01-04 16:12:37 -08:00
Evan Almloff
c9ff449e45 remove the bump allocator 2024-01-04 17:33:22 -06:00
Evan Almloff
f6acaba061 fix compilation 2024-01-04 17:04:56 -06:00
Jonathan Kelley
1a8bf13ff5
Merge branch 'master' into resilient-hydration 2024-01-04 10:28:41 -08:00
Jonathan Kelley
ea1325f6e8
Merge branch 'master' into polish-throw 2024-01-04 10:27:51 -08:00
Jonathan Kelley
c1d9553e49
Merge pull request #1624 from Erithax/rename_into_node_traits
rename IntoDynNode and IntoTemplate traits
2024-01-04 10:25:49 -08:00
Jonathan Kelley
8df7a7685e
Merge branch 'master' into many_optional_attributes 2024-01-04 10:18:57 -08:00
Jonathan Kelley
a2f44be2a2
Merge branch 'master' into binary-protocal 2024-01-04 10:17:10 -08:00
Jonathan Kelley
1d289ff282
Merge pull request #1710 from Exotik850/cx-spawn-poll
Make cx.spawn poll the task before returning `TaskId`
2024-01-04 10:07:22 -08:00
Jonathan Kelley
922d9c8c05
Merge branch 'master' into fix-event-bubbling 2024-01-04 10:06:27 -08:00
ealmloff
2e424436b3
don't remove futures spawned by spawn_forever when the component is removed (#1708) 2024-01-03 14:02:36 -06:00
abhi
fd7c9e0359
fix empty render causing panic (#1769) (#1774)
* fix empty render causing panic (#1769)

* use an default root column instead of an empty root column

* fix formatting

* restore create.rs in core

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-01-02 10:02:58 -06:00
Evan Almloff
0a7873fcd0 merge upstream 2023-12-30 14:12:21 -06:00
tigerros
451d935aa2
fix typo (#1759) 2023-12-29 18:18:50 -06:00
Evan Almloff
9e9b7a2459 fix clippy 2023-12-27 10:23:56 -06:00
Evan Almloff
c48788270e fix lints in miri 2023-12-17 16:46:32 -06:00
Evan Almloff
7b45a3a98b run fuzzing more when miri is deactivated 2023-12-16 21:27:31 -06:00
Evan Almloff
22f2c0ad9b reduce how many times the create and diff fuzzing runs 2023-12-16 21:24:47 -06:00
Evan Almloff
b91e97ca43 document events are only triggerable on elements 2023-12-16 19:54:26 -06:00
ealmloff
56478d1856
Merge branch 'DioxusLabs:master' into fix-event-bubbling 2023-12-16 06:34:00 -06:00
kidkool850@gmail.com
ed2ce6e039 Don't notify task if ready 2023-12-15 22:23:59 -06:00
Exotik850
fdce7bbe5a Return to just TaskId, still polling 2023-12-12 13:02:35 -06:00
kidkool850@gmail.com
69ca1fd8a7 Make cx.spawn() return an Option<TaskId>, returns None if finished immediately 2023-12-11 16:01:40 -06:00
Evan Almloff
0e3fd225a8 Merge branch 'master' into binary-protocal 2023-12-08 08:44:04 -06:00
Exotik850
fc31876a57
Wasm target check before build (#1689)
* Add `rustup show` check for wasm32 target

* better place for check

* fmt

* clippy fmt
2023-12-07 12:35:16 -06:00
Jonathan Kelley
07d84fedb7
Merge pull request #1580 from ealmloff/miri-leak
Remove the ignore leaks in flag MIRI
2023-12-06 21:29:32 -08:00
Jonathan Kelley
f52233c095
Merge pull request #1634 from ealmloff/fix-string-memory-leak
Fix string memory leak
2023-12-06 21:16:43 -08:00
Jonathan Kelley
850f2da0c6
Merge pull request #1651 from ealmloff/string-into-attribute
Add into attribute value impl for String
2023-12-06 21:14:31 -08:00
JMS55
8530f53692
Fix typo (#1695)
* Fix typo

* Fix typo again
2023-12-06 06:55:07 -06:00
Evan Almloff
b3c7ebfdba fix merged changes 2023-11-27 16:12:48 -06:00
Exotik850
8e4debb226
remove #[doc(hidden)] from EventHandler (#1665)
* remove #[doc(hidden)] from EventHandler

* Make UseFuture Clone, factor out dependencies field

* Revert "Make UseFuture Clone, factor out dependencies field"

This reverts commit 9ca09e595d.

* fix formatting

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-11-27 15:45:29 -06:00
Evan Almloff
355cd9b19e Merge branch 'master' into pr/atty303/1349 2023-11-20 18:37:33 -06:00
Exotik850
f8ce72c605
Fix outdated lazynode documentation (#1648)
* Fix outdated lazynode documentation

* Use expanded rsx! instead of just rsx macro
2023-11-20 09:49:18 -06:00
Evan Almloff
3c115bbef7 add into attribute value impl for String 2023-11-19 10:03:18 -06:00
Evan Almloff
7f4e2af0c4 fix string memory leak 2023-11-13 08:17:08 -06:00
Evan Almloff
a120af33ad Merge branch 'master' into fix-event-bubbling 2023-11-11 17:53:47 -06:00
Evan Almloff
4b4dcbed6a fix error boundary test 2023-11-09 08:43:38 -06:00
Erithax
c2749b3371 rename IntoDynNode and IntoTemplate traits 2023-11-09 02:00:36 +01:00
Evan Almloff
6141aeb037 polish the throw trait 2023-11-07 18:24:07 -06:00
Evan Almloff
46fec1ae48 fix clippy 2023-11-02 13:46:57 -05:00
Evan Almloff
77d53df532 Merge branch 'master' into pr/atty303/1349 2023-10-31 13:39:20 -05:00
Evan Almloff
57dd56c8a4 Merge branch 'miri-leak' into events-2 2023-10-30 16:18:12 -05:00
ealmloff
5bb06b9719
Merge branch 'master' into events-2 2023-10-30 15:37:29 -05:00
Evan Almloff
eea4a02ef5 add comments about the cause of the leak 2023-10-26 13:23:12 -05:00
Evan Almloff
fca9d95519 fix props memory leak 2023-10-26 13:06:42 -05:00
Evan Almloff
370c6cb9d2 fix clippy 2023-10-25 16:47:04 -05:00
Evan Almloff
b99f081c08 drop any attribute after rendering 2023-10-25 16:37:04 -05:00
Evan Almloff
9abc390d04 bench 2023-10-20 13:21:27 -05:00
Evan Almloff
33f0f0c172 fix clippy 2023-10-20 09:38:10 -05:00
Jonathan Kelley
e819702fc5
Add into_vnode temporary logic for more things
This commit adjusts how rsx! works, making it more forgiving with signals.

Notably, we add the temporaries to if chains too.
2023-10-17 15:42:21 -07:00
Evan Almloff
1a4741ce04 fix liveview events 2023-10-12 10:21:29 -05:00
Leonard
2d1234c3d1
Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Leonard
95d8843d9d
Fix clippy (#1532) 2023-10-08 18:24:38 -05:00
Evan Almloff
248d78fbfe fix clippy 2023-10-05 15:45:34 -05:00
Evan Almloff
ed95ac932d fix double triggering events 2023-10-04 08:58:28 -05:00
ealmloff
072ca3529b
Merge branch 'DioxusLabs:master' into events-2 2023-10-02 19:48:52 -05:00
Evan Almloff
c137357094 fix hydration 2023-09-27 10:22:49 -05:00
Evan Almloff
ee25c03e74 fix some clippy lints 2023-09-27 10:13:45 -05:00