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
Exotik850
493b0693c5
Put channels back in hook
2023-12-12 13:15:41 -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
Jonathan Kelley
ad885ec47a
Merge pull request #1650 from ealmloff/effect-cleanup
...
Add an optional cleanup closure to the use effect hook
2023-12-06 22:13:08 -08:00
Jonathan Kelley
4444ba0b97
Merge pull request #1576 from ealmloff/fix-lints-release-web
...
Fix use shared state lint in release mode
2023-12-06 21:39:36 -08:00
Exotik850
694989e826
Add use_const hook ( #1667 )
...
* Add use_const hook
* cargo fmt
* clippy allow
* pub fn on get_rc
2023-11-28 09:51:09 -06:00
Exotik850
18fa1e4831
Make UseFuture Clone, factor out dependencies field ( #1666 )
2023-11-27 15:42:48 -06:00
ealmloff
7a459e15d8
Update packages/hooks/src/use_effect.rs
...
Co-authored-by: Marc Espín <mespinsanz@gmail.com>
2023-11-21 16:28:06 -06:00
Evan Almloff
83f7ef9a44
add an optional cleanup closure to the use effect hook
2023-11-19 09:58:00 -06:00
Evan Almloff
6e85ecea12
fix use shared state lint in release mode
2023-10-25 10:23:23 -05:00