Commit Graph
160 Commits
Author SHA1 Message Date
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 2d8841cf70 Add lazy contexts to signals 2023-07-14 12:52:49 -07: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
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
Jonathan Kelley 1b14b309e9 chore: clean up desktop 2022-12-06 16:37:28 -08:00
Jonathan Kelley b182a6ee75 chore: clean up interpreter and bindings 2022-12-05 16:47:04 -08:00
Jonathan Kelley df4a1b6c7a chore: finish tweaking context api 2022-12-05 15:30:49 -08:00
Jonathan Kelley 99a818996e chore: make warnings go away 2022-12-05 14:18:28 -08:00
Jonathan Kelley e22923eb2d feat: core tests passing 2022-12-05 14:16:54 -08:00
Jonathan Kelley a61daf220d feat: context api overhaul 2022-12-02 16:24:49 -08:00
Jonathan Kelley 3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Jonathan Kelley 5253ce6b65 wip: usecallback 2022-11-19 13:43:19 -08:00
Jonathan Kelley 57c10174ec wip: add use_callback hook 2022-11-19 13:21:02 -08:00
Jonathan Kelley 30ef225812 feat: event handling on desktop 2022-11-17 20:00:39 -08:00
Jonathan Kelley 642b21f125 suspense works in desktop 2022-11-16 11:48:47 -08:00
Jonathan Kelley fc9fe6e560 feat: split apart template mutations 2022-11-08 19:39:37 -08:00
zohnannor 15e9aa1958 Fix weird docs typo/copy-paste error (#507)
- introduced in a8952a9ee8 and 4518b6bc8c
2022-07-24 17:21:11 -05:00
Reinis Mazeiks d734dc5b46 Remove argument from use_hook closure (#496)
Also; update docs for said function
2022-07-11 15:50:56 -04:00
Jon Kelley d9546d9504 Renderers are now packages, not features. (#387)
* feat: use synchronous router design

* feat: function to get router out of dom

* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Jonathan Kelley cd7ee47e40 fix: make clippy happier with rust 1.63 2022-06-30 16:35:33 -04:00
Rowin Hernández 95573d1f54 Update useref.rs defualt -> default 2022-05-09 18:48:50 +01:00
Koptan 04cb82b31a fix: export useeffect in hooks module 2022-04-26 19:19:13 +02:00
YuKun Liu fe3577faaf fix: usestate docs 2022-03-28 10:42:09 +08:00
Jonathan Kelley 50d509688d feat: update examples for tui 2022-03-09 13:36:30 -05:00
Jonathan Kelley 3e9023b131 docs: finish async 2022-03-09 10:22:12 -05:00
Jonathan Kelley 9846e0947b Merge pull request #297 from DioxusLabs/jk/use-ref-memo
feat: memoize useref by tracking mutations
2022-03-08 01:00:23 -05:00