Commit Graph
67 Commits
Author SHA1 Message Date
Jonathan Kelley 98bd78de43 Fix issue with mutability in component macro 2024-01-15 23:57:10 -08:00
Jonathan Kelley 8559984e9d and mut bound to mut methods on signals 2024-01-15 23:24:59 -08:00
Jonathan Kelley d88561f973 Adjust impl for signal syntax to allow cloned values 2024-01-15 21:43:30 -08:00
Jonathan Kelley 33bba24867 Experiment with call syntax only working for copy types 2024-01-15 21:12:44 -08:00
Jonathan Kelley bb750f5336 Fix effect stack issue 2024-01-15 20:45:59 -08:00
Jonathan Kelley a32ae8b112 Remove push_future, get use_future kinda working again 2024-01-15 19:34:04 -08:00
Jonathan Kelley 74aa55f85f Bring back mroe hooks, remove old hooks, cleanup a number of examples 2024-01-15 17:04:39 -08:00
Jonathan Kelley 6134a2ce24 Clean up a number of examples 2024-01-15 13:06:05 -08:00
Evan Almloff 20480c0a2d fix use_hook imports 2024-01-15 09:10:15 -06:00
Evan Almloff 01726d6656 remove once, restore use_hook 2024-01-15 09:05:46 -06:00
Jonathan Kelley 1dde044697 remove cx.render 2024-01-13 21:12:21 -08:00
Jonathan Kelley fae0b08e61 Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Evan Almloff 6c29e2b825 clean up some core context APIs 2024-01-11 17:21:13 -06:00
Evan Almloff 4013341b6c hello world example working 2024-01-05 18:01:05 -06:00
werner291 a0b95a82a0 Implemented From<Signal<T>> for ReadOnlySignal<T> (#1772) 2024-01-01 10:22:52 -06:00
Evan Almloff a1550460ce Fix peek spelling 2023-12-07 11:37:59 -06:00
Evan Almloff 1c2a6fa010 fix signals with debug information 2023-12-07 07:19:41 -06:00
ealmloff c67e0705ea Merge branch 'master' into signal-read-untracked 2023-12-07 07:12:30 -06:00
Evan Almloff 2bab4eb6c3 rename read_untracked to peak 2023-12-07 07:06:43 -06:00
Evan Almloff 8a62e4a987 Merge branch 'master' into debug-signals 2023-10-31 13:55:20 -05:00
Evan Almloff c5e647e97d add read untracked to signals 2023-10-30 08:39:37 -05:00
Jonathan Kelley ea8c5e290d Merge pull request #1551 from ealmloff/fix-signals-outside-of-runtime
Fix using signals outside of a scope
2023-10-23 15:32:12 -04:00
Jonathan Kelley 55ad41b392 Merge branch 'master' into jk/loop-allocation-strategy 2023-10-17 15:27:20 -07:00
Evan Almloff ce86aabf26 fix clippy 2023-10-17 13:02:51 -05:00
Evan Almloff 050add21d7 effect-outside-of-runtime 2023-10-17 12:56:12 -05:00
Jonathan Kelley 509dca97e6 Merge pull request #1544 from ealmloff/must-use-hooks
Add must use to several hooks
2023-10-17 09:24:39 -07:00
Evan Almloff 6e9aa4dba1 fix clippy 2023-10-16 13:29:32 -05:00
Evan Almloff c65116c173 restore deref<Fn() -> Ref> 2023-10-16 13:03:37 -05:00
Evan Simkowitz b1d6069363 Fix deref for Write struct in dioxus-signals (#1549) 2023-10-16 10:49:21 -05:00
Jonathan Kelley 7e2164d6d6 Add toggle 2023-10-15 17:52:01 -07:00
Evan Almloff 3bf6d2d7cf add must use to several hooks 2023-10-14 12:08:54 -05:00
Leonard 2d1234c3d1 Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Evan Almloff 78860da006 Merge branch 'master' into debug-signals 2023-09-22 07:59:47 -05:00
Jonathan Kelley 30b958ffa8 Merge pull request #1386 from ealmloff/fix-new-signals-in-effects
Fix leaked signals created in effects
2023-09-16 11:56:40 -07:00
Leonard c866ae602b Add system for creating component attributes + new #[component] attribute (#1448)
* Add `#[component]` attribute + system for creating component attributes + other stuff

* Delete inlineprops.rs

* Update inline_props.rs

* Cargo fmt

* Fix clippy warnings and paths in props/mods.rs

* Include where clause in `#[inline_props]` output

* Allow Clippy type complexity in `LinkProps`

* Allow the type complexity lint for the entire link.rs file

* Remove snake_case -> PascalCase converter, but rather enforce PascalCase

Also:
- Put the second function inside the main one instead of besides it.
- Simplify

* Simplify type check lints so they don't return false positives

They will not always work, but they won't return any false positives, like for aliases. This is likely going to be replaced by a more polished Clippy-backed linting system.

* Fix #583

* Cargo fmt

* Add docs for `deserialize()` and remove useless comment

* Add `#[component]` to prelude

* Merge branch 'master' of https://github.com/tigerros/dioxus

* #[inline_props] is no more. Except in the docs folder, but that's going to be removed

* Remove docs folder

* Remove docs from workspace

* Resolve `DeserializerOutput` conversation
2023-09-15 09:13:36 -05:00
Evan Almloff c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff f3e7f042b4 fix reading signals outside of the vdom 2023-08-26 14:53:39 -05:00
Evan Almloff 38274da3ee Fix creating signals in effects 2023-08-21 14:42:56 -05:00
Evan Almloff 9c03d68d88 expose new_in_scope for signals 2023-08-21 14:33:52 -05:00
Evan Almloff f09a2e2280 fix release builds 2023-08-21 14:28:45 -05:00
Evan Almloff df85b25548 Add debug information to borrows and ownership in signals 2023-08-21 14:23:02 -05:00
Evan Almloff 18d255decc add serde feature to signals 2023-08-10 17:17:25 -07:00
Evan Almloff 24c626b306 fix clippy 2023-08-08 13:43:57 -07:00
Evan Almloff 69dab86873 add selector example to readme 2023-08-08 13:27:45 -07:00
Evan Almloff ba7a663eb6 fix some ownership issues 2023-08-08 13:18:15 -07:00
Evan Almloff d6089bbd35 add optional dependency variants of selectors and effects 2023-08-08 13:06:33 -07:00
Evan Almloff ed05abc196 document remaining methods in the signal crate 2023-08-07 18:00:17 -07:00
Evan Almloff 0c17bdb737 don't subscribe in tasks or event handlers 2023-08-07 17:55:29 -07:00
Evan Almloff 4447709ac8 add readmes 2023-08-07 17:49:14 -07:00
Evan Almloff cfd68bf7d9 document signals crate 2023-08-07 16:56:49 -07:00