Commit graph

216 commits

Author SHA1 Message Date
Jonathan Kelley
91d4207fa7
Merge branch 'master' into feature/use-shared-state-better-diagnostics 2023-07-20 10:51:10 -07:00
Andrea Frigido
dccad58f1d Update license field following SPDX 2.1 license expression standard 2023-07-20 18:00:07 +01:00
Jonathan Kelley
c954a116eb
Fix race condition in use_future 2023-07-19 14:23:34 -07:00
Marc Espín
9cbc086aa1
fix: Update use_ref docs (#1201) 2023-07-17 11:02:02 -05:00
Jonathan Kelley
78d383bf1f
Merge pull request #1128 from marc2332/feat/improved-docs
feat(docs): Improved shared state, use_effect and use_memo docs
2023-07-14 15:20:40 -07:00
Jonathan Kelley
9d2b44aa0f
Merge branch 'master' into feature/use-shared-state-better-diagnostics 2023-07-14 15:07:53 -07:00
Jonathan Kelley
2d8841cf70
Add lazy contexts to signals 2023-07-14 12:52:49 -07:00
niedzwiedzw
337697a886 test with forked version of debug-cell 2023-07-13 20:12:28 +02:00
Jonathan Kelley
b25501af48
Merge pull request #1139 from Demonthos/add-onunmount-hook
Add on unmount hook
2023-07-12 14:26:56 -07:00
niedzwiedzw
60d6137f39 better display for locations in panic messages 2023-07-12 16:36:17 +02:00
niedzwiedzw
9154b0f8ea pass the information on previous caller on clone 2023-07-12 16:24:39 +02:00
niedzwiedzw
af091c5bf8 turns out Result combinators are not marked with #[trace_caller], so it must be written without function nesting in order to work 2023-07-12 16:20:19 +02:00
niedzwiedzw
3fa519563e prevent inlining 2023-07-12 12:27:17 +02:00
niedzwiedzw
760d93716f also track previous caller in the in debug mode to show the conflicting borrow 2023-07-12 02:53:48 +02:00
niedzwiedzw
9da32d5465 oh yeah, tracking itself should also be debug-only 2023-07-12 01:53:00 +02:00
niedzwiedzw
b8c14ce35c make location diagnostics optional (only available in debug mode) 2023-07-12 01:38:50 +02:00
niedzwiedzw
43e3304eaf track caller for easier debugging 2023-07-12 01:19:20 +02:00
niedzwiedzw
f159779af4 make thiserror a workspace dependency everywhere else 2023-07-11 22:54:24 +02:00
niedzwiedzw
469a7ac0af better diagnostics for use_shared_state 2023-07-11 21:41:52 +02:00
Marc Espín
32d4472bfd
fix: Remove duplicated doc links and improved some descriptions (#1167) 2023-07-08 11:04:27 -05:00
traxys
f2c1c05792 Add a helper macro for properties & async
The to_owned macro is helpful to handle hooks with async components, but
when using properties it can be problematic because `cx` will be moved
in the async block, and will result in a compilation error. This adds a
new helper that allows to make either hooks or properties owned.
2023-07-06 15:18:19 +02:00
ealmloff
d1cd4851aa
Merge branch 'DioxusLabs:master' into add-onunmount-hook 2023-07-03 12:09:13 -07:00
marc2332
052ae145bf
updated docs 2023-07-02 23:00:26 +02:00
Evan Almloff
a6e87cf340 fix tests 2023-06-30 12:56:22 -07:00
Jon Kelley
3985bd664b
Merge pull request #1084 from marc2332/patch-6
fix: Properly drop UseFuture's values to avoid leaking memory
2023-06-30 12:12:09 -07:00
Evan Almloff
60b25e9c2f add on unmount hook 2023-06-30 08:54:08 -07:00
Marc Espín
f4e1d78d7a
fix(docs): Fix dioxus-hooks crate description (#1134) 2023-06-29 10:27:54 -05:00
marc2332
8a2f9f3fcb
feat(docs): Improved shared state, use_effect and use_memo docs 2023-06-28 00:15:00 +02:00
Jon Kelley
dfa4d8d989
Merge pull request #1105 from Demonthos/workspace-dependancies
Workspace Dependancies
2023-06-27 10:17:12 -07:00
Marc Espín
a3654fd0b8
Update use_shared_state.rs 2023-06-20 19:13:34 +02:00
Evan Almloff
5f873511c5 use workspace dependancies 2023-06-19 14:29:11 -05:00
Marc Espín
1546fce485
fix: Properly drop UseFuture's values to avoid leaking memory 2023-06-10 18:26:02 +02:00
Jonathan Kelley
c97f43146d bump hooks and web crates 2023-05-18 13:42:15 +02:00
Miles Murgaw
06233ac550 fix: rustfmt 2023-05-13 12:41:00 -04:00
Miles Murgaw
d059b2bc05 doc: mention futures-util in use_coroutine hook 2023-05-13 11:50:24 -04:00
Evan Almloff
2dd40ec202 add docs to remaining items 2023-03-02 12:02:12 -06:00
Evan Almloff
88198fc47c remove static bound on owner 2023-03-02 11:59:25 -06:00
Evan Almloff
d238481936 reduce indirection and remove some unnecessary methods 2023-03-02 11:54:21 -06:00
Evan Almloff
f5c058a2eb make use_shared_state usable in static futures 2023-03-02 11:42:02 -06:00
Yin Jifeng
62d30bc254 chore: reimplement usefuture::state 2023-02-23 16:39:50 +08:00
Jan-Mirko Otter
9ac8210196 PartialEq for UseState/UseCoroutine 2023-02-22 20:26:21 +01:00
Evan Almloff
a51f67c2ec add version to docs links in readmes 2023-02-18 18:38:30 -06:00
Jon Kelley
4f0f2484fd
Merge pull request #774 from Demonthos/update-doc-links
Update guide doc links
2023-02-17 11:53:15 -08:00
Evan Almloff
c7e957d6f9 add use_memo 2023-01-29 15:57:40 -06:00
Evan Almloff
b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Evan Almloff
3f3db39c28 update doc links 2023-01-15 15:18:12 -06:00
Evan Almloff
52d5c8d4e7 update READMEs and tags for the 0.3 release 2023-01-10 10:16:11 -06:00
Jonathan Kelley
7f01f61138 feat: publish 0.3 versions of many crates 2023-01-04 14:31:07 -05:00
Maurice Kayser
c8f88b6428
Fix typo (#702) 2023-01-01 14:41:18 -06:00
Jonathan Kelley
4fdbce9a70 chore: clean up readmes 2022-12-29 16:17:03 -05:00