Commit graph

1012 commits

Author SHA1 Message Date
Evan Almloff
4ee4cf23d3 restore a few unneeded breaking changes 2023-08-08 13:37:29 -07:00
Evan Almloff
69dab86873 add selector example to readme 2023-08-08 13:27:45 -07:00
Evan Almloff
ba7a663eb6 fix some ownership issues 2023-08-08 13:18:15 -07:00
Evan Almloff
292b3367dd create some more compelling examples 2023-08-07 18:20:03 -07:00
Evan Almloff
0c17bdb737 don't subscribe in tasks or event handlers 2023-08-07 17:55:29 -07:00
Evan Almloff
6ca170453b handle virtual dom switching 2023-08-07 14:59:58 -07:00
Evan Almloff
ddbe913e79 make signals non-breaking 2023-08-07 14:50:36 -07:00
Evan Almloff
b0d499036a make future handling functions global 2023-08-07 11:16:22 -07:00
Evan Almloff
dce418140a create a way to hoist ownership to a different scope 2023-08-04 17:50:05 -07:00
Evan Almloff
b3fbbba711 fix signals in futures 2023-08-04 17:25:40 -07:00
Evan Almloff
a6f611eccf fix subscriptions in events 2023-08-04 17:23:57 -07:00
Evan Almloff
0032f7e2af fix miri 2023-08-04 15:23:09 -07:00
Evan Almloff
0be5dbe715 fix the context API 2023-08-04 14:42:19 -07:00
Evan Almloff
998f9e0d00 remove static bound from props 2023-08-04 14:24:49 -07:00
Evan Almloff
a2c7b69a1d set the scope stack correctly 2023-08-04 14:19:59 -07:00
Evan Almloff
b09e528aaa fix recursive runtime drop impl 2023-08-04 14:14:56 -07:00
Evan Almloff
cb4c46154d fix scope context 2023-08-04 14:12:59 -07:00
Evan Almloff
04cdb14e5b improve signal copy runtime 2023-08-04 13:53:05 -07:00
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors 2023-07-31 18:49:54 -07:00
Jonathan Kelley
f80c3c9ffb
Bump core and interpreter 2023-07-31 18:02:23 -07:00
Evan Almloff
20296b5038 fix some examples that used the private API 2023-07-26 16:50:04 -07:00
Evan Almloff
2d51a1c4f2 make more of core private 2023-07-26 16:17:48 -07:00
Evan Almloff
c19420cb29 fix root component suspense 2023-07-25 12:51:12 -07:00
ealmloff
a43f334141
use component name instead of props name 2023-07-21 16:30:14 -05:00
Evan Almloff
66fc7974b0 Log errors when a component fails to render 2023-07-21 10:43:22 -07:00
Andrea Frigido
dccad58f1d Update license field following SPDX 2.1 license expression standard 2023-07-20 18:00:07 +01:00
Jonathan Kelley
4240f8428c
Fix: dont use bumpslab anymore, just box scopestates 2023-07-19 18:40:43 -07:00
Jonathan Kelley
163fe68f45
Remove a bit more unsafe 2023-07-19 12:26:32 -07:00
Jonathan Kelley
2871c8bb4d
Don't use boxed cell slice, use a refcell instead 2023-07-19 12:08:13 -07:00
Jonathan Kelley
1d371bf971
Merge pull request #1213 from Demonthos/prep-sledgehammer-liveview
Prepare for Sledgehammer Bindgen in Liveview
2023-07-18 18:10:48 -07:00
Evan Almloff
a96ccdc6f3 fix clippy 2023-07-18 13:16:17 -07:00
Jonathan Kelley
68253b49d7
cargo fmt 2023-07-14 17:46:14 -07:00
Jonathan Kelley
cc984fae54
Only check suspense if the component aborted rendering 2023-07-14 17:45:48 -07:00
Jonathan Kelley
0f5605b3db
Apply clippy fixes 2023-07-14 17:13:49 -07:00
Jonathan Kelley
f0128a3150
implement suspense using simpler approach 2023-07-14 17:12:07 -07:00
Jonathan Kelley
81075748f6
add simple suspense methods 2023-07-14 16:56:17 -07:00
Jonathan Kelley
cbd88bbcc3
Rip out async components 2023-07-14 16:15:20 -07:00
Jonathan Kelley
2d8841cf70
Add lazy contexts to signals 2023-07-14 12:52:49 -07:00
Jonathan Kelley
17f2de81d6 Remove indexmap from core 2023-07-12 14:22:47 -07:00
Marc Espín
32d4472bfd
fix: Remove duplicated doc links and improved some descriptions (#1167) 2023-07-08 11:04:27 -05:00
Jonathan Kelley
1489492ec4 Reuse existing slots in provide context 2023-07-07 12:18:15 -07:00
Jonathan Kelley
3a1b22aec2 Use linear scans on contexts 2023-07-07 12:04:09 -07:00
Jonathan Kelley
47513e8b9e Use boxes instead of bumpslab for hooks 2023-07-06 12:43:04 -07:00
Jonathan Kelley
10a3b228f6 Add some logging and debug 2023-07-05 15:19:26 -07:00
Marc Espín
cb73343865
fix: Fix stop_propagation example (#1143) 2023-07-02 12:04:49 -05:00
Jon Kelley
7f1e99ade1
Merge pull request #1064 from Demonthos/expand-fuzzing
Expanded fuzzing
2023-06-30 12:21:54 -07:00
Evan Almloff
5f873511c5 use workspace dependancies 2023-06-19 14:29:11 -05:00
Nick Mosher
b48cfe5730
fix: Remove dbg that was causing TUI rendering problems (#1085) 2023-06-19 08:29:29 -05:00
ealmloff
d9a1b702df
Merge branch 'DioxusLabs:master' into expand-fuzzing 2023-06-19 07:55:49 -05:00
Jon Kelley
d34c2e395f
Merge pull request #1065 from Demonthos/fix-events-on-placeholders
Fix panic when events trigger on placeholders
2023-06-08 14:52:18 +00:00
Evan Almloff
db44721c3d update all element ids 2023-06-02 14:23:16 -05:00
Evan Almloff
9d5f115e30 fix events triggering on placeholders causing panics 2023-06-02 14:21:49 -05:00
Evan Almloff
fe162f4a79 expanded fuzzing 2023-06-02 14:20:03 -05:00
Evan Almloff
382d5cb8c5 fix hot reloading with namespaces 2023-05-30 10:32:17 -05:00
Jonathan Kelley
b6463e4b27 bump core 2023-05-04 12:04:21 -07:00
Evan Almloff
d005f3481f fix non-bubbling event propagation 2023-04-10 09:45:16 -05:00
Evan Almloff
297c9a822e always update root id node refs 2023-04-05 12:34:17 -05:00
Jon Kelley
0fd93e74c2
Merge pull request #915 from Demonthos/fix-empty-mutations
Don't add no op mutations when diffing lists
2023-03-28 16:17:25 -07:00
Evan Almloff
3bb6c4bc30 don't add no op mutations 2023-03-28 13:34:37 -05:00
Evan Almloff
204ac8b2ed clarify mutations docs 2023-03-28 11:58:50 -05:00
Evan Almloff
226bd3a6e1 fix panic when waking future on shutdown 2023-03-13 15:50:05 -05:00
Evan Almloff
4847789a83 fix event bubbling within a single template 2023-03-12 14:47:30 -05:00
Evan Almloff
2c0eb303f6 fix the provide context docs 2023-02-27 15:05:49 -06:00
Jonathan Kelley
33397b290d bump core 2023-02-16 12:13:27 -08:00
Evan Almloff
f652ac5e13 improve sorting test 2023-02-12 17:36:00 -06:00
Evan Almloff
abd6132c03 fix bfs ordering 2023-02-12 17:11:32 -06:00
Evan Almloff
362aadb021 sum nodes pushed instead of counting them 2023-02-09 09:03:35 -06:00
Jonathan Kelley
a6c13c8ad0 Move event return to HTML crate 2023-02-08 15:51:28 -08:00
Evan Almloff
b33e0ed3ea fix release build warnings 2023-02-07 09:19:09 -06:00
Jonathan Kelley
9ebafc46bb feat: allow 'static futures to be spawned from handlers 2023-02-06 00:54:08 -08:00
Evan Almloff
9baef6bcd9 always load the templates in hydration 2023-01-31 14:18:34 -06:00
Evan Almloff
696109db10 implement hydration 2023-01-31 14:10:48 -06:00
Evan Almloff
65be035506 only add non-static components to the borrowed_props list 2023-01-29 11:53:52 -06:00
Jonathan Kelley
4f83c1b86d Merge branch 'master' of github.com:DioxusLabs/dioxus 2023-01-27 23:27:36 -08:00
Jonathan Kelley
6fde323112 bump core version 2023-01-27 23:27:28 -08:00
Evan Almloff
b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Jonathan Kelley
b5c7d5cfd9 chore: use 0.2 of bumpslab 2023-01-23 11:45:18 -08:00
Evan Almloff
a0441f686c use main bumpslab branch 2023-01-23 12:48:00 -06:00
Evan Almloff
82e2175500 make entry key return scopeid 2023-01-23 10:08:11 -06:00
Evan Almloff
bdb63d18f3 try a different branch 2023-01-23 08:25:08 -06:00
Evan Almloff
00a9ad29a8 fix memory leak 2023-01-22 21:24:30 -06:00
Evan Almloff
c5f003e41e use git version of bump slab 2023-01-22 21:07:54 -06:00
Evan Almloff
ae028d82f8 use bump slab 2023-01-22 17:16:34 -06:00
Evan Almloff
ba79d4babd don't-box-scopestates 2023-01-22 15:05:32 -06:00
Evan Almloff
8548b324f1 fix dropping nested scopes 2023-01-15 21:23:49 -06:00
Evan Almloff
d13d1fb1c9 Merge branch 'upstream' into fix-future-on-dropped-scope 2023-01-15 14:01:11 -06:00
Evan Almloff
d7f9a07f4e fix 2023-01-15 13:52:06 -06:00
Jonathan Kelley
69a347a551 fix: scopes not dropping their hooks 2023-01-15 10:02:24 -08:00
Jonathan Kelley
a45f16a773 chore: clean up comments 2023-01-14 11:57:36 -08:00
Jonathan Kelley
ecaa68605d fix: trim start matches for events 2023-01-14 11:57:03 -08:00
Jonathan Kelley
40a36aa8e6 chore: use trim 2023-01-14 00:21:26 -08:00
Jonathan Kelley
8d59c626ea fix: listeners should not use hard indexing 2023-01-14 00:19:37 -08:00
Evan Almloff
ebed5ac025 Merge branch 'upstream' into add-fuzzing-to-core 2023-01-12 16:38:29 -06:00
Evan Almloff
a01a65a0eb seperate text and other dynamic nodes 2023-01-12 16:34:46 -06:00
Evan Almloff
260589cd7f pass clippy 2023-01-12 15:53:33 -06:00
Evan Almloff
09da9c04a8 Use zero cost option instead of null pointers 2023-01-12 15:42:23 -06:00
Evan Almloff
8a04a6ab0e clean up fuzzing test 2023-01-12 15:28:10 -06:00
Evan Almloff
75932a43e0 Merge branch 'upstream' into add-fuzzing-to-core 2023-01-12 15:17:20 -06:00
Evan Almloff
1899a10aec fix removing aborted nodes 2023-01-12 15:13:47 -06:00
Evan Almloff
733ff40bd0 Merge branch 'upstream' into handle-aborting-renders 2023-01-12 13:30:15 -06:00
Jonathan Kelley
fd4eac3488 Merge branch 'master' of github.com:DioxusLabs/dioxus 2023-01-11 17:12:33 -08:00
Jonathan Kelley
cf79ca8113 chore: stop ignoring some doc tests 2023-01-11 17:12:09 -08:00
Jonathan Kelley
c4a18bc24d chore: clean up some clippy warnings and add clippy lints to CI 2023-01-11 16:13:41 -08:00
Jon Kelley
e5b39bb61f
Merge pull request #744 from Demonthos/update-readmes
Update READMEs and tags for the 0.3 release
2023-01-10 18:21:55 -08:00
Jonathan Kelley
6d24fc3a6f ci: make CI pass for miri 2023-01-10 18:08:41 -08:00
Jonathan Kelley
74af8f0f52 chore: smallbox unused on miri ci 2023-01-10 18:05:48 -08:00
Jonathan Kelley
13e58daa20 Merge branch 'master' into jk/add-miri-to-ci 2023-01-10 17:53:25 -08:00
Jonathan Kelley
39c4f3f814 fix: ci not passing 2023-01-10 16:39:56 -08:00
Evan Almloff
52d5c8d4e7 update READMEs and tags for the 0.3 release 2023-01-10 10:16:11 -06:00
Jonathan Kelley
faf94c7b4e fix: make miri pass on context api 2023-01-09 13:50:33 -08:00
Evan Almloff
927db9723a handle abort diffing 2023-01-07 19:01:29 -06:00
Evan Almloff
112738c23d improve fuzzing test 2023-01-07 18:52:37 -06:00
ealmloff
cd4474cc4f
Update docs to reflect changes in master (#670)
* work on updating docs to master version

* more updates

* more polishing

* finish interactivity chapter

* finish updating core guide

* fix grammer mistakes and typos

* more grammer fixes

* add liveview guide

* remove doc build

* WIP custom renderer docs

* add axum as dev-dependancy to guide

* fix examples

* fix overview example

* use md book fork to fix compilation
2023-01-06 15:00:12 -08:00
ealmloff
a616a8fa9d
fix templates being registered in mutations many times (#722) 2023-01-05 13:05:12 -06:00
ealmloff
64881fd951
improve error message when a user tried to use nested hooks (#723) 2023-01-05 13:05:04 -06:00
Evan Almloff
990b0503e1 remove outdated comment 2023-01-05 10:36:30 -06:00
Evan Almloff
42baadf65d add fuzzing test to dioxus-core 2023-01-05 10:28:07 -06:00
Jonathan Kelley
7f01f61138 feat: publish 0.3 versions of many crates 2023-01-04 14:31:07 -05:00
Evan Almloff
e3dd55533f handle removing a future that does not exist 2023-01-04 11:38:34 -06:00
Evan Almloff
1a92f125b2 support Option<AttributeValue> 2023-01-03 08:51:58 -06:00
Jon Kelley
07e71956d4
Merge pull request #648 from Demonthos/fix-non-str-attributes
fix custom attribute value support
2023-01-02 23:41:45 -05:00
Evan Almloff
c0f9355648 fix any value dropping 2023-01-02 21:26:12 -06:00
Evan Almloff
51dba50c04 use BumpBox<Any> and FromAnyValue instead of sync bounds 2023-01-02 14:40:25 -06:00
Evan Almloff
87ff41f213 remove some commented out code 2023-01-02 11:54:44 -06:00
Maurice Kayser
c8f88b6428
Fix typo (#702) 2023-01-01 14:41:18 -06:00
Jonathan Kelley
0d95568972 chore: add miri and windows test 2022-12-30 14:34:44 -05:00
Evan Almloff
5b1d9c5c8d Merge branch 'upstream' into fix-non-str-attributes 2022-12-30 11:52:55 -06:00
Jonathan Kelley
9db69cc613 chore: remove comments 2022-12-30 02:43:00 -05:00
Jonathan Kelley
ba20bc08b8 chore: clean up clock 2022-12-30 02:41:09 -05:00
Jonathan Kelley
daa5449b6b chore: use existing scheduler 2022-12-30 02:39:47 -05:00
Jonathan Kelley
7bc8150da7 fix desktop to poll without budget 2022-12-29 20:39:22 -05:00
Jonathan Kelley
bd720e2268 fix: use futuresunordered instead of bespoke waker system 2022-12-29 19:53:43 -05:00
Evan Almloff
cb17252a21 clean up warnings and update prelude 2022-12-28 20:42:47 -06:00
Evan Almloff
044462876d Merge branch 'upstream' into fix-non-str-attributes 2022-12-28 20:36:57 -06:00
=
1555500fbd drop any values correctly 2022-12-26 10:53:25 -06:00
=
c245f04c8c make any_cmp safe 2022-12-26 08:41:37 -06:00
=
170a3669f7 reduce usage of unsafe 2022-12-26 08:37:50 -06:00
Jonathan Kelley
366e46eddf chore: add some fixes to hot reload 2022-12-25 23:22:43 -05:00
Jonathan Kelley
079d71fb2b fix: use modern enum 2022-12-25 22:11:45 -05:00
Jonathan Kelley
8887d65e1b Merge branch 'master' into jk/suspense-rollover 2022-12-25 22:10:22 -05:00
Jonathan Kelley
3d69d3ea92 chore: use pending instead of async 2022-12-25 01:43:22 -05:00
Jonathan Kelley
9b0244ee5c fix: use ready nodes in more places 2022-12-25 01:37:00 -05:00
Jonathan Kelley
85f6ea0545 feat: expand error boundary concept 2022-12-23 23:59:10 -05:00
Jonathan Kelley
6b41c9d193 fix: make sure to set scope on none 2022-12-23 23:59:02 -05:00
Jonathan Kelley
8e18a223e3 wip: more tweaks 2022-12-23 19:43:19 -05:00
Jonathan Kelley
d8aa9f032a feat: none return works 2022-12-23 19:33:15 -05:00
Jonathan Kelley
244ade048e Merge branch 'master' into jk/suspense-rollover 2022-12-23 19:13:22 -05:00
Evan Almloff
08c2440bca update core tests 2022-12-23 16:10:05 -06:00
Evan Almloff
afd024bcb6 Merge branch 'upstream' into fix-non-str-attributes 2022-12-23 15:53:39 -06:00
Evan Almloff
6a46a7c4fb fix tests 2022-12-22 18:19:55 -06:00
Evan Almloff
608c37428d Merge branch 'upstream' into fix-hot-reloading 2022-12-22 16:58:30 -06:00
Evan Almloff
432bfd395e fix swaping templetes before any instances are created 2022-12-22 16:54:49 -06:00
Evan Almloff
1530445972 fix hot reloading rsx with nested rsx calls 2022-12-22 16:38:07 -06:00
Evan Almloff
21ca1599eb more bugfixes 2022-12-22 15:09:58 -06:00
Jonathan Kelley
5a70c6ecf9 chore: swap over router none 2022-12-22 14:45:48 -05:00
Evan Almloff
04a923f83e fix changing the order of dynamic nodes 2022-12-22 11:36:38 -06:00
Jonathan Kelley
870d857a93 fix: prevent double borrow 2022-12-22 11:32:42 -05:00
Jonathan Kelley
56d193d196 fix: try to guard against double drop 2022-12-22 11:30:30 -05:00
Evan Almloff
db7a1ec0b0 fix lints 2022-12-21 13:04:57 -06:00
Evan Almloff
4c1fe1d9bb allow changing the number of root nodes 2022-12-21 12:50:48 -06:00
Evan Almloff
e5a5850354 merge master 2022-12-20 20:48:28 -06:00
Jonathan Kelley
2fa3fe1fc0 fix: use arcwake instead of rcwake 2022-12-20 11:13:06 -08:00
Jonathan Kelley
18157eeed1 fix: dont panic in panic test 2022-12-19 20:10:34 -08:00
Evan Almloff
67921cacc3 post merge fixes 2022-12-19 21:20:46 -06:00
Evan Almloff
493ee1cb3f Merge branch 'upstream' into fix-hot-reloading 2022-12-19 21:17:22 -06:00
Jonathan Kelley
d3be971f4e chore: rollback to option instead of anyhow 2022-12-19 18:06:13 -08:00
Evan Almloff
4364a4b511 handle updating templates better 2022-12-19 19:28:44 -06:00
Jonathan Kelley
7a4b0d7c2d fix: use stack optimization for replacer 2022-12-19 11:14:01 -08:00
Evan Almloff
96ce704f8e fix serialization 2022-12-19 11:48:28 -06:00
Jonathan Kelley
9241be6e06 Merge branch 'master' into fix-non-str-attributes 2022-12-17 02:51:25 -08:00
Jonathan Kelley
a42660a451 fix: dont handle wakeups from finished tasks 2022-12-17 02:51:13 -08:00
Jonathan Kelley
3faef30075 fix: dont clone callbacks 2022-12-17 01:55:18 -08:00
Jonathan Kelley
c409fecaaf fix: sync with master 2022-12-17 01:52:17 -08:00
Jonathan Kelley
cc7736302a Merge branch 'master' into fix-non-str-attributes 2022-12-17 01:51:13 -08:00
Jonathan Kelley
482ae5e395 fix: no comments 2022-12-16 22:44:07 -08:00
Jonathan Kelley
255a903d5a chore: no dbg 2022-12-16 22:42:57 -08:00
Jonathan Kelley
e0390ff608 fix: advance dynamic root 2022-12-16 22:39:27 -08:00
Jonathan Kelley
81dc134323 fmt 2022-12-16 21:10:20 -08:00
Jonathan Kelley
1ad86890a4 chore: reorganize miri 2022-12-16 20:41:31 -08:00
Jonathan Kelley
ea9245b0f7 fix: make miri pass 2022-12-16 20:39:19 -08:00
Jonathan Kelley
261d688b6e fix: get miri passing 2022-12-16 20:26:04 -08:00
Jonathan Kelley
4d73ffa361 fix: save listeners, borrowed props, and pull back props 2022-12-16 19:54:33 -08:00
Jonathan Kelley
b6a8391e07 chore: dont print logs in core 2022-12-16 14:21:10 -08:00
Jon Kelley
5ac9b595ea
Revert "fix: liveview interpreter using new templates" 2022-12-16 14:20:05 -08:00
=
14dd568987 Merge branch 'upstream-master' into fix-hot-reloading 2022-12-16 10:07:11 -06:00
Jon Kelley
7ec55aa563
Merge pull request #655 from DioxusLabs/jk/fix-liveview
fix: liveview interpreter using new templates
2022-12-15 21:11:21 -08:00
=
0d9c350d5e implement for web and desktop 2022-12-15 21:16:37 -06:00
Jonathan Kelley
7790d2c065 chore: simplify liveview abstraction 2022-12-15 18:46:59 -08:00
Jonathan Kelley
4e75c707d1 fix: go in reverse for building paths 2022-12-15 15:49:52 -08:00
Jonathan Kelley
8530db69e1 fix: dont panic on cleanup 2022-12-15 14:26:05 -08:00
Jonathan Kelley
3845451128 Merge branch 'master' of github.com:DioxusLabs/dioxus 2022-12-14 08:51:59 -08:00
Jonathan Kelley
c90be6bdc5 fix: dont panc 2022-12-14 08:51:28 -08:00
Jonathan Kelley
cee63ae370 fix: spawn task 2022-12-13 16:04:41 -08:00
Jonathan Kelley
fc2aaa7df5 fix: cargo check 2022-12-13 15:54:59 -08:00
Jonathan Kelley
02b1a73890 fix: use tokio for test 2022-12-13 15:48:40 -08:00
Jonathan Kelley
74fba3b579 fix: remove scope from listener 2022-12-13 15:36:15 -08:00
Jonathan Kelley
b659f4d5d6 chore: add back template diffing 2022-12-13 15:18:20 -08:00
Jonathan Kelley
5c20e651da fix: get rollover working 2022-12-13 14:44:47 -08:00
Jonathan Kelley
d4b6bb8a7b feat: fix the scope rollover bug 2022-12-12 18:31:30 -08:00
Jonathan Kelley
d93eed4c29 feat: allow dynamic nodes to be into dynamic nodes 2022-12-12 11:20:25 -08:00