Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors
2023-07-31 18:49:54 -07:00
Jonathan Kelley
456b553c93
Merge pull request #1230 from Demonthos/add-computed
...
Add computed hook
2023-07-31 17:37:47 -07:00
Evan Almloff
d7f7116ce3
clean up the API a bit
2023-07-28 14:17:52 -07:00
Marc Espín
fad3272afb
fix: Update use_coroutine example ( #1237 )
2023-07-24 11:32:32 -05:00
Miles Murgaw
6210c6fefe
Convert use_eval to use send/recv system ( #1080 )
...
* progress: reworked
don't run this, it'll kill your web browser
* feat: use_eval but with comms
* revision: async recv & recv_sync
* revision: use_eval
* revision: standard eval interface
* revision: use serde_json::Value instead of JsValue
* revision: docs
* revision: error message
* create: desktop eval (wip)
* fix: desktop eval
* revision: wrap use_eval in Rc<RefCell<_>>
* fix: fmt, clippy
* fix: desktop tests
* revision: change to channel system
- fixes clippy errors
- fixes playwright tests
* fix: tests
* fix: eval example
* fix: fmt
* fix: tests, desktop stuff
* fix: tests
* feat: drop handler
* fix: tests
* fix: rustfmt
* revision: web promise/callback system
* fix: recv error
* revision: IntoFuture, functionation
* fix: ci
* revision: playwright web
* remove: unescessary code
* remove dioxus-html from public examples
* prototype-patch
* fix web eval
* fix: rustfmt
* fix: CI
* make use_eval more efficient
* implement eval for liveview as well
* fix playwright tests
* fix clippy
* more clippy fixes
* fix clippy
* fix stack overflow
* fix desktop mock
* fix clippy
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-07-21 17:36:25 -05:00
Evan Almloff
8af0f0a76a
Fix future value never updating
2023-07-21 12:47:51 -07:00
Evan Almloff
bfc8240438
Fix use_future always spawning a new task
2023-07-21 11:52:41 -07:00
Evan Almloff
33ee0636d6
add computed hook
2023-07-20 11:07:55 -07:00
Jonathan Kelley
91d4207fa7
Merge branch 'master' into feature/use-shared-state-better-diagnostics
2023-07-20 10:51:10 -07: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
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
marc2332
8a2f9f3fcb
feat(docs): Improved shared state, use_effect and use_memo docs
2023-06-28 00:15:00 +02:00
Marc Espín
a3654fd0b8
Update use_shared_state.rs
2023-06-20 19:13:34 +02:00
Marc Espín
1546fce485
fix: Properly drop UseFuture's values to avoid leaking memory
2023-06-10 18:26:02 +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
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
Maurice Kayser
c8f88b6428
Fix typo ( #702 )
2023-01-01 14:41:18 -06:00
Jonathan Kelley
0bf4725639
fix: namespacing of dynamic attributes
2022-12-07 15:11:51 -08:00
Jonathan Kelley
db5b65b6cb
chore: make cargo check happy with new apis
2022-12-07 14:51:14 -08:00
Jonathan Kelley
4eefc3f854
chore: rename all &cx to cx, make clipppy happy
2022-12-07 13:11:40 -08:00
Jonathan Kelley
5673017def
chore: clean up the repo some
2022-12-06 17:50:25 -08:00