Evan Almloff
dadbab5d72
make some enums non-exhaustive ( #2140 )
2024-03-26 19:14:48 -07:00
Jonathan Kelley
cbadea022a
Eval should never return an error
...
Only awaiting eval should error.
Eval should always be available, even if using its methods returns errors.
2024-02-14 15:13:15 -08:00
Evan Almloff
308226996c
actually derive the copy trait for eval
2024-02-02 14:48:31 -06:00
Evan Almloff
a789d6a64e
make eval copy
2024-02-02 14:47:59 -06:00
Jonathan Kelley
7c2947a131
Implement effects using reactivecontext
2024-02-01 13:21:52 -08:00
Jonathan Kelley
14651a3573
Change context api to panic with nice error message
2024-01-15 18:02:58 -08:00
Evan Almloff
cfebb6c900
remove async-channel now that context and eval is global
2024-01-15 11:46:00 -06:00
Evan Almloff
3865f44081
make desktop compile
2024-01-05 14:39:45 -06:00
Jonathan Kelley
dd4547d753
Feat: add global context functions
...
Add functions like window() and router() to
allow dynamically grabbing global contexts
without have to use the hook variants.
Deprecates the existing hook variants to
discourage folks from adding more noise
to their codebases.
2023-10-23 16:26:10 -04:00
Evan Almloff
3bf6d2d7cf
add must use to several hooks
2023-10-14 12:08:54 -05:00
Evan Almloff
24c626b306
fix clippy
2023-08-08 13:43:57 -07:00
Miles Murgaw and Evan Almloff
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