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
Evan Almloff
c431429448
fix web playwright tests
2024-02-05 15:25:51 -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
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
7d78e5e250
Fix warnings and compile errors
2024-02-03 13:10:16 -08:00
Jonathan Kelley
64365cd361
make sure reactive context works across threads
2024-02-02 16:13:06 -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
0fd7799bc2
disable use_future on the server
2024-02-02 13:36:19 -08: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
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
Jonathan Kelley
8f07d881a6
Switch todo!() to unreachable!/unimplemented! where it matters
2024-01-31 16:26:20 -08:00
Jonathan Kelley
a72c035de4
Fix cargo check on examples
2024-01-30 17:59:57 -08:00
Jonathan Kelley
0bd9692e45
Fix cargo test and a number of little cleanup bugs
2024-01-30 17:33:14 -08:00
Jonathan Kelley
cef64d43df
move hooks out of signals crate
2024-01-29 17:02:26 -08:00
Jonathan Kelley
dcdada542b
Properly implement wait_for_suspense
...
Wait_for_suspense now does not call flush_sync, making it
appropriate for deferring effects on the server. Futures will
still run on the server (as needed to progress suspense)
but use_effect / and memo watchers will not run on the server
2024-01-29 14:12:05 -08:00
Evan Almloff
1f88103dca
only implement T -> Readonlysignal
2024-01-29 15:57:23 -06:00
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