Evan Almloff
05a6dda89c
fix formatting
2024-02-14 12:13:54 -06:00
Evan Almloff
48751d2f98
only subscribe scopes to signals when rendering
2024-02-14 09:33:22 -06:00
Evan Almloff
b4d17abfc1
document all features
2024-02-09 12:15:59 -06:00
Jonathan Kelley
2ade193a5b
Fix shortcut by wrapping callback
2024-02-05 18:50:13 -08:00
Evan Almloff
c431429448
fix web playwright tests
2024-02-05 15:25:51 -06:00
Jonathan Kelley
69e4ebe4ed
Fix suspense on resource
2024-02-05 11:59:50 -08:00
Evan Almloff
91fea15cdc
don't expose the signal scope subscriber API publicly
2024-02-05 08:13:52 -06:00
Jonathan Kelley
4a7fe938ad
Make clippy happy
2024-02-04 23:03:52 -08:00
Jonathan Kelley
7d78e5e250
Fix warnings and compile errors
2024-02-03 13:10:16 -08:00
Evan Almloff
1afada528d
fix user server future
2024-02-02 18:01:57 -06:00
Jonathan Kelley
6bde8b0ce0
fix use_effect_with_deps
2024-02-02 14:49:33 -08:00
Jonathan Kelley
d28cc9c0cf
remove changed log in maybe_sync memo, flush sync
2024-02-02 14:35:55 -08:00
Jonathan Kelley
8a38a41512
fix use_future todos!
2024-02-02 14:17:53 -08:00
Jonathan Kelley
f44b72f5e1
server_future uses use_resource
2024-02-02 14:08:21 -08:00
Jonathan Kelley
0fd7799bc2
disable use_future on the server
2024-02-02 13:36:19 -08:00
Jonathan Kelley
8f70a84c70
Use futures_util mutex instead of flume for sending flush lock wakeups
2024-02-02 13:09:26 -08:00
Evan Almloff
38bdab880d
only give out a ReadOnlySignal from async resources
2024-02-02 15:00:05 -06: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
0c71b95e82
skeleton of use_server_future with reactivity
2024-02-01 13:21:52 -08:00
Jonathan Kelley
44966efde2
use_future works
2024-01-31 16:56:58 -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
09e14f1936
Implement some clippy fixes
2024-01-30 18:17:45 -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
8cc17dc1bd
Fix compile
2024-01-29 17:03:50 -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
Jonathan Kelley
1847c737e9
Queue effects to run after flush_sync
2024-01-28 02:21:05 -08:00
Jonathan Kelley
974680796f
add test cases, refactor deref
2024-01-26 23:05:40 -08:00
Jonathan Kelley
c0522bc152
cargo check all
2024-01-23 16:58:29 -08:00
Evan Almloff
c51badf07b
fix use hooks with impl signals
2024-01-23 10:09:02 -06:00
Jonathan Kelley
028f499bf6
Fix generational box in release mode
2024-01-21 12:46:19 -08:00
Jonathan Kelley
06d9b575b7
rename use_selector to use_memo
2024-01-20 23:32:12 -08:00
Evan Almloff
3dce650367
fix some lints in use on destroy
2024-01-19 12:14:06 -06:00
Evan Almloff
439bc4e9e6
remove computed now that selectors exist
2024-01-19 12:13:55 -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
e65c5f0eb3
depreciate the render macro
2024-01-16 13:18:46 -06:00
Jonathan Kelley
8559984e9d
and mut bound to mut methods on signals
2024-01-15 23:24:59 -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
14651a3573
Change context api to panic with nice error message
2024-01-15 18:02:58 -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
b291a5c0b0
Remove a number of hooks
2024-01-15 14:51:34 -08:00
Jonathan Kelley
bb6aa9e792
Add back ondestroy hook
2024-01-15 14:27:20 -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
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