Commit graph

211 commits

Author SHA1 Message Date
Evan Almloff
50e3216d8b convert T into signals automatically 2024-01-29 13:36:39 -06:00
Jonathan Kelley
1847c737e9
Queue effects to run after flush_sync 2024-01-28 02:21:05 -08:00
Jonathan Kelley
3ccf520205
reorder impls 2024-01-26 23:06:30 -08:00
Jonathan Kelley
974680796f
add test cases, refactor deref 2024-01-26 23:05:40 -08:00
Evan Almloff
458c13fb74 run effects in the scope they were created in 2024-01-24 18:34:22 -06:00
Evan Almloff
c3555a7ec0 fix Option<String> in props 2024-01-24 16:40:14 -06:00
Evan Almloff
30ef29d195 Remove an extra CopyValue::invalid from maybe_sync_memo 2024-01-24 14:33:39 -06:00
Jonathan Kelley
1eb989a544
remove setinner 2024-01-24 12:24:47 -08:00
Evan Almloff
1a9079b28b Merge branch 'breaking' of https://github.com/Demonthos/dioxus into breaking 2024-01-24 14:23:24 -06:00
Evan Almloff
10e305d2da don't require a valid type for CopyValue::set 2024-01-24 14:23:23 -06:00
Jonathan Kelley
d092f7f19f
Fix effect by using a set_inner 2024-01-24 12:21:14 -08:00
Evan Almloff
55b37cc381 fix serializing signals 2024-01-24 10:54:17 -06:00
Evan Almloff
87dc409837 remove must use hints from memo and rename file to memo 2024-01-24 09:31:29 -06:00
Evan Almloff
f2e48f10e9 simplify the crm example a bit more 2024-01-23 18:46:24 -06:00
Evan Almloff
fc6912d4c0 make GlobalMemo and GlobalSignal not copy or clone 2024-01-23 18:37:50 -06:00
Evan Almloff
84e76dbdce remove duplicate vec utils defined in the read_impls 2024-01-23 17:23:04 -06:00
Jonathan Kelley
828c253305
queue effect instead of running it 2024-01-23 14:10:13 -08:00
Evan Almloff
6bc0332052 simplify the readable and writable traits a bit 2024-01-23 12:07:55 -06:00
Evan Almloff
94c0c2e5b9 remove some old manual implementations of helpers 2024-01-23 11:29:13 -06:00
Evan Almloff
7f93263357 add a bunch more utilities to the trait 2024-01-23 10:56:26 -06:00
Evan Almloff
51d7133ca5 add readable and writable traits for signal-like structs 2024-01-23 10:05:59 -06:00
Evan Almloff
89b7784d31 make validate private again 2024-01-23 07:32:53 -06:00
Jonathan Kelley
079fec3be6
simplify generational box by compressing debug info 2024-01-22 21:17:02 -08:00
Evan Almloff
e01f10e25d remove mappable and mappablemut traits 2024-01-22 16:51:25 -06:00
Jonathan Kelley
06d9b575b7
rename use_selector to use_memo 2024-01-20 23:32:12 -08:00
Jonathan Kelley
3ded0f5329
Make more examples cross-platform 2024-01-20 00:11:55 -08:00
Jonathan Kelley
85c7c22619
Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley
c1be911dd7
Cleanup in global signals 2024-01-19 15:50:00 -08:00
Jonathan Kelley
60f5697e8e
Fix global signal owner 2024-01-19 15:48:21 -08:00
Jonathan Kelley
337c04557b
get cargo check --all --examples --tests working! 2024-01-19 15:01:01 -08:00
Jonathan Kelley
83bce6ce97
Make cargo check --all --examples work! 2024-01-19 14:19:49 -08:00
Evan Almloff
08475af221 fix some unused items 2024-01-19 15:38:51 -06:00
Evan Almloff
6444559a66 move selector construct onto signals 2024-01-19 15:30:40 -06:00
Evan Almloff
c859ed3b12 create global selectors 2024-01-19 15:26:28 -06:00
Evan Almloff
e4c84f91e1 expose the inner signal GlobalSignal uses 2024-01-19 13:50:38 -06:00
Evan Almloff
bc914deeaa create Signal::global 2024-01-19 13:46:17 -06:00
Evan Almloff
c7275e4c30 fix signal unsubscriber 2024-01-19 12:13:45 -06:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working 2024-01-18 19:27:55 -08:00
Jonathan Kelley
94b17cc8ca
Fix non tokio builds for desktop 2024-01-18 04:07:28 -08:00
Evan Almloff
205a005142 fix dioxus web 2024-01-17 08:40:42 -06:00
Evan Almloff
701093ede5 Try to rerun all dirty scopes before polling any tasks to fix effect ordering 2024-01-17 08:17:30 -06:00
Evan Almloff
397015df31 fix some clippy lints in dioxus signals 2024-01-16 16:31:07 -06:00
Evan Almloff
f6fd20bb61 fix signals 2024-01-16 13:57:31 -06:00
Evan Almloff
611f0d3b5f Merge branch 'maybe-sync-signal' into breaking 2024-01-16 13:49:53 -06:00
Evan Almloff
e65c5f0eb3 depreciate the render macro 2024-01-16 13:18:46 -06:00
Jonathan Kelley
98bd78de43
Fix issue with mutability in component macro 2024-01-15 23:57:10 -08:00
Jonathan Kelley
8559984e9d
and mut bound to mut methods on signals 2024-01-15 23:24:59 -08:00
Jonathan Kelley
d88561f973
Adjust impl for signal syntax to allow cloned values 2024-01-15 21:43:30 -08:00
Jonathan Kelley
33bba24867
Experiment with call syntax only working for copy types 2024-01-15 21:12:44 -08:00
Jonathan Kelley
bb750f5336
Fix effect stack issue 2024-01-15 20:45:59 -08:00
Jonathan Kelley
a32ae8b112
Remove push_future, get use_future kinda working again 2024-01-15 19:34:04 -08:00
Jonathan Kelley
74aa55f85f
Bring back mroe hooks, remove old hooks, cleanup a number of examples 2024-01-15 17:04:39 -08:00
Jonathan Kelley
6134a2ce24
Clean up a number of examples 2024-01-15 13:06:05 -08:00
Evan Almloff
20480c0a2d fix use_hook imports 2024-01-15 09:10:15 -06:00
Evan Almloff
01726d6656 remove once, restore use_hook 2024-01-15 09:05:46 -06:00
Jonathan Kelley
9881a94e67
Remove cx in more places 2024-01-13 21:18:36 -08:00
Jonathan Kelley
1dde044697
remove cx.render 2024-01-13 21:12:21 -08:00
Jonathan Kelley
fae0b08e61
Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Evan Almloff
6c29e2b825 clean up some core context APIs 2024-01-11 17:21:13 -06:00
Evan Almloff
55f76fede6 work on fixing some core tests 2024-01-10 19:21:15 -06:00
Evan Almloff
78a5592d6d fix comparer 2024-01-08 14:03:17 -06:00
Evan Almloff
69a1ec0e3c Merge branch 'create-comparer' into maybe-sync-signal 2024-01-08 13:56:11 -06:00
ealmloff
f54ee1c361
Merge branch 'master' into map-signal 2024-01-05 18:30:31 -06:00
Evan Almloff
4013341b6c hello world example working 2024-01-05 18:01:05 -06:00
Evan Almloff
b7c9817cf3 fix tests 2024-01-02 15:19:01 -06:00
Evan Almloff
73b7f450a5 fix merge errors 2024-01-02 14:55:46 -06:00
Evan Almloff
cddcd69200 Merge branch 'maybe-sync-signal' into map-signal 2024-01-02 14:17:01 -06:00
Evan Almloff
ccd0ccffa7 fix formatting 2024-01-01 10:47:45 -06:00
Evan Almloff
b9d179c494 add as_mapped_ref 2024-01-01 10:44:21 -06:00
werner291
a0b95a82a0
Implemented From<Signal<T>> for ReadOnlySignal<T> (#1772) 2024-01-01 10:22:52 -06:00
Evan Almloff
e45739ac04 fix examples 2023-12-23 13:57:49 -06:00
Evan Almloff
31489167f7 use map in the signal iterator 2023-12-23 13:52:23 -06:00
Evan Almloff
0c7729da05 Merge branch 'master' into map-signal 2023-12-23 13:43:54 -06:00
Evan Almloff
a2fadc8d11 Make the function bounds for map less restrictive 2023-12-23 13:43:27 -06:00
Evan Almloff
5ab0c48ddd fix clippy 2023-12-17 17:55:02 -06:00
Evan Almloff
6b17d3db1e fix signals crate 2023-12-15 18:35:48 -06:00
Evan Almloff
9e388c3c51 refactor generational box into multiple files 2023-12-15 08:50:54 -06:00
Evan Almloff
70c3abb8df Merge branch 'master' into maybe-sync-signal 2023-12-14 12:29:32 -06:00
Jonathan Kelley
028ffad95a
Merge pull request #1593 from ealmloff/signal-read-untracked 2023-12-07 11:12:14 -08: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
Evan Almloff
a1550460ce Fix peek spelling 2023-12-07 11:37:59 -06:00
Evan Almloff
1c2a6fa010 fix signals with debug information 2023-12-07 07:19:41 -06:00
ealmloff
c67e0705ea
Merge branch 'master' into signal-read-untracked 2023-12-07 07:12:30 -06:00
Evan Almloff
2bab4eb6c3 rename read_untracked to peak 2023-12-07 07:06:43 -06:00
Jonathan Kelley
ccd850edf6
Merge pull request #1383 from ealmloff/debug-signals
Add debug information to borrows and ownership in signals
2023-12-06 21:19:38 -08:00
Jonathan Kelley
16982c9f69
Add metadata for signals crate 2023-12-06 20:54:50 -08:00
Jonathan Kelley
d3f6ff703c
Release 0.4.3
dioxus@0.4.3
dioxus-autofmt@0.4.3
dioxus-check@0.4.3
dioxus-cli@0.4.3
dioxus-core@0.4.3
dioxus-core-macro@0.4.3
dioxus-desktop@0.4.3
dioxus-fullstack@0.4.3
dioxus-hooks@0.4.3
dioxus-hot-reload@0.4.3
dioxus-html@0.4.3
dioxus-interpreter-js@0.4.3
dioxus-liveview@0.4.3
dioxus-mobile@0.4.3
dioxus-native-core@0.4.3
dioxus-native-core-macro@0.4.3
dioxus-router@0.4.3
dioxus-router-macro@0.4.3
dioxus-rsx@0.4.3
dioxus-signals@0.4.3
dioxus-ssr@0.4.3
dioxus-tui@0.4.3
dioxus-web@0.4.3
dioxus_server_macro@0.4.3
fermi@0.4.3
generational-box@0.4.3
plasmo@0.4.3
rsx-rosetta@0.4.3

Generated by cargo-workspaces
2023-12-06 16:56:35 -08:00
Evan Almloff
b3c5158524 fix tests 2023-11-07 13:15:19 -06:00
Evan Almloff
2731ca0b30 fix ref try map 2023-11-07 09:26:12 -06:00
Evan Almloff
e77c158636 fix selector effect id 2023-11-07 09:19:33 -06:00
Evan Almloff
7daa945ae3 fix effects 2023-11-06 18:54:35 -06:00
Evan Almloff
466005890d make effect system async to make signals send + sync 2023-11-06 18:47:51 -06:00
Evan Almloff
c33276e0a0 remove ghost 2023-11-06 14:46:38 -06:00
Evan Almloff
6eb4e7358b fix selector and signal unsync default 2023-11-06 14:46:26 -06:00
Evan Almloff
ebbaacf073 fix read and write impls 2023-11-03 10:27:21 -05:00
Evan Almloff
0a8de1d40f clean up ref mapping with GATs 2023-11-02 19:35:53 -05:00
Evan Almloff
ff26380838 fix clippy 2023-11-01 08:21:04 -05:00
Evan Almloff
d815c7cc89 create a reactive selector called comparer 2023-10-31 18:30:06 -05:00
Evan Almloff
8a62e4a987 Merge branch 'master' into debug-signals 2023-10-31 13:55:20 -05:00
Evan Almloff
90e04edcdf make the signal runtime global 2023-10-30 14:25:31 -05:00