Commit Graph
182 Commits
Author SHA1 Message Date
Evan Almloff 4985cfdfd0 restore write_silent as a deprecated function with updated recommendations 2024-03-13 09:34:49 -05:00
Evan Almloff 3e9a360b55 Merge branch 'main' into isomorphic-spawn 2024-03-11 15:42:47 -05:00
studystill 3a21ac5710 remove repetitive words (#2046)
Signed-off-by: studystill <chenghuiyue@outlook.com>
2024-03-11 09:49:26 -05:00
Evan Almloff bbc81b8f9c fix memos in children; introduce isomorphic spawn 2024-03-08 16:40:31 -06: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 4bc2f4a713 add more docs around lifetime downcasting 2024-03-08 10:46:34 -06:00
Evan Almloff 5f9e5f607b rename take to manually drop 2024-03-08 10:35:27 -06:00
Evan Almloff 60a84956d1 restore lifetime checking for signals 2024-03-08 10:32:57 -06:00
Evan Almloff 3d7f419636 fix memos during suspense 2024-03-07 11:49:51 -06:00
Evan Almloff 492f0329bf remove flume, implement lazier memos 2024-03-06 11:38:28 -06:00
Jonathan Kelley 608fec59e5 Merge pull request #1993 from DioxusLabs/fix-effect
Fix effect ordering and futures being run after scopes are dropped
2024-03-05 11:18:17 -08:00
Evan Almloff 287416cfa7 rename flush_sync to wait_for_next_render 2024-03-04 19:52:17 -06:00
Evan Almloff 568631e331 test signal drops 2024-03-04 16:02:19 -06:00
Evan Almloff 8322b508a7 fix signals leaking memory 2024-03-04 15:51:14 -06:00
Jonathan Kelley d61c3fab20 Merge branch 'main' into debug-subscriptions 2024-02-29 12:30:27 -08: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 24ebc1e628 added better documentation and code snipppets for the use_resource, use_future, use_effect and use_context hooks 2024-02-27 10:32:55 +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 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 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