Jonathan Kelley
47ab4c8db9
Chore: move todo!() to unimplemented!() ( #2558 )
2024-06-27 16:27:27 -05:00
Evan Almloff
b6dc2a2230
Deduplicate reactive scope updates/Reset subscriptions on reruns/fix use memo double update ( #2506 )
...
* deduplicate effect updates
* only subscribe to signals read in the current run of reactive scopes
* subscribe to memo reads after recomputing the value
2024-06-18 18:49:25 -07:00
Evan Almloff
b0ae9be9c8
Simplify dioxus-config-macro ( #2514 )
...
* refactor config macro code
* fix clippy
2024-06-18 16:10:23 -07:00
Evan Almloff
79e18c2d62
fix hooks release build
2024-06-10 07:41:15 -05:00
Evan Almloff
0127501dbf
Improve inline docs ( #2460 )
...
Improve inline docs
* improve incorrect event handler return error message
* Improve event handler docs
* document the eval functions
* document spawn and common spawn errors
* fix event handler docs
* add notes about how you use attributes and elements in rsx
* add doc aliases for attributes and events we rename
* add some more aliases for common search terms
* don't doc ignore any public examples in core
* don't ignore public doc examples in ssr
* don't ignore examples in the dioxus package readme
* add a warning when you launch without a renderer enabled
* fix some outdated element docs
* add a bunch of examples to resource
* add notes about desktop events
* add more docs for use_resource
* add on_unimplemented hint to Dependency
* fix some unresolved links
* add examples to each of the router traits
* add not implemented errors for router traits
* add an example to the routable trait
* expand rsx macro docs
* improve memo docs
* update the dioxus readme
* mention dioxus crate features in the docs
* fix a bunch of doc tests
* fix html doc tests
* fix router doc tests
* fix dioxus signals doc tests
* fix dioxus ssr doc tests
* fix use_future example in the hooks cheat sheet
* add a javascript alias for eval
* fix hook explanation values
* remove unused embed-doc-image dependency
2024-06-06 18:15:17 -07:00
Evan Almloff
5e57779435
fix memo and resource caller information ( #2443 )
2024-06-06 17:01:42 -07:00
Marc Espin
7d529cf39c
fix: Avoid cloning a provided context unnecessarily ( #2458 )
...
* fix: Avoid clonning a provided context unnecessarily
* remove another useless clone in use_context_provider
* fix formatting
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-05-29 08:53:21 -05:00
Evan Almloff
b3cd4fac10
set up example scaping for docs.rs ( #2450 )
2024-05-28 13:05:55 -07:00
Evan Almloff
5290b658fd
Fix effects triggered from async tasks; improve work scheduling docs ( #2370 )
...
* outline work scheduling
* move scheduling code from dirty_scope to scheduler
* introduce queue_effect
* Run effects after all tasks are polled if there are no components rerendered
* add a new test for async effects
2024-05-04 15:30:13 +01:00
Evan Almloff
05eaca320f
fix empty docs clippy warning
2024-05-03 13:41:48 -05:00
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