Evan Almloff
1d72ef16c4
Restore set compare hook ( #2287 )
...
* restore set compare hook
* fix use_set_compare doc example
* add a hook to compare a value with a set
* implement partialeq for SetCompare
* export the new hook
* fix the use_set_compare hook
2024-04-26 11:55:11 -04:00
Evan Almloff
5ce91e1bfc
Fix flakey windows tests ( #2332 )
2024-04-17 15:08:38 -07:00
Marc Espin
b6d3da2b31
fix: Update use_resource
docs ( #2303 )
...
* fix: Update `use_resource` docs
* Fix use_recourse docs; match ref instead of deref because WeatherLocation isn't copy
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-15 08:28:12 -05:00
Jonathan Kelley
821a650f77
Fix: requeue events, process events ( #2236 )
...
* Fix: requeue events, process events
* Fix test: wait_for_work shouldn't wait 3 times when one update happens while rendering
2024-04-04 11:46:31 -07:00
Marc Espin
7949fcda9a
chore: Clean up use_on_destroy
docs ( #2199 )
...
* chore: Clean up `use_on_destroy` docs
* fmt
2024-04-01 09:20:04 -05:00
Jonathan Kelley
537f064001
Remove some old docs, cleanup some readmes
2024-03-27 17:28:30 -07:00
Miles Murgaw
3cbe6ff96e
Fix Outdated README.md ( #2147 )
...
* fix: outdated readme
* Fix missing readme
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:17:02 -07:00
Evan Almloff
0662033c84
Fix early drop of eventhandlers ( #2126 )
...
* fix early drop of eventhandlers
* add a test for stale props that are memorized in place
* fix clippy
2024-03-22 14:37:02 -07:00
Evan Almloff
df41df75d0
switch to use_reactive
2024-03-15 11:54:09 -05:00
Evan Almloff
80aeba30c7
Merge branch 'main' into resource-dependancies
2024-03-13 10:03:44 -05:00
Evan Almloff
3866aa2977
simplify use_dependencies docs
2024-03-13 10:03:00 -05:00
Evan Almloff
0951a389f7
add a way to add manual dependency tuple to memos and effects
2024-03-13 09:54:48 -05:00
Evan Almloff
2bbc609082
add a way to subscribe to a dependency tuple for the use_resource hook
2024-03-12 16:50:03 -05:00
Jonathan Kelley
d180f569cf
Merge pull request #2064 from ealmloff/make-resource-copy
...
Implement copy for Resource
2024-03-12 13:32:31 -07:00
Evan Almloff
81e0469cc2
implement copy for Resource
2024-03-12 15:15:24 -05:00
Evan Almloff
3e9a360b55
Merge branch 'main' into isomorphic-spawn
2024-03-11 15:42:47 -05:00
Evan Almloff
f51b5617e1
add a test for the memo hook
2024-03-11 15:33:46 -05:00
Marc Espin
617b11a352
feat: Add Resource::clear()
and also updated Resource
docs ( #2049 )
...
* feat: Add clear method to Resource and also updated its docs
* Update use_resource.rs
2024-03-11 14:17:20 -05:00
Evan Almloff
ffc49530f6
implement readable and callable for all structs in the hooks crate
2024-03-08 11:17:28 -06:00
Evan Almloff
492f0329bf
remove flume, implement lazier memos
2024-03-06 11:38:28 -06:00
Evan Almloff
287416cfa7
rename flush_sync to wait_for_next_render
2024-03-04 19:52:17 -06:00
Evan Almloff
3827378f68
Merge branch 'main' into fix-effect
2024-03-04 15:40:37 -06:00
Evan Almloff
78b9b157dc
fix formatting
2024-03-04 12:04:09 -06:00
Evan Almloff
a14e5be7ad
Fix effect ordering after reruns
2024-03-01 12:46:07 -06:00
Jonathan Kelley
d61c3fab20
Merge branch 'main' into debug-subscriptions
2024-02-29 12:30:27 -08:00
Evan Almloff
c7ffdc7b29
rerun tasks in the same order as components
2024-02-29 11:43:07 -06:00
Andrey
1404009edc
touchups
2024-02-28 03:48:52 +00:00
andrey
70136b22ea
Fix error in examples/future.rs comments, use_futures inline docs comments, also added clarification that Signal<T>.read() and Singal<T>() are the same thing
2024-02-28 11:42:04 +08:00
andrey
5a73147d69
added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks
2024-02-27 10:36:05 +08:00
andrey
df0d45be48
added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks
2024-02-27 10:15:38 +08:00
Evan Almloff
f539698963
add debug information for signal subscriptions
2024-02-26 11:46:01 -06:00
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