Commit Graph
35 Commits
Author SHA1 Message Date
Evan Almloff 0127501dbf Improve inline docs (#2460)
Improve inline docs

* improve incorrect event handler return error message

* Improve event handler docs

* document the eval functions

* document spawn and common spawn errors

* fix event handler docs

* add notes about how you use attributes and elements in rsx

* add doc aliases for attributes and events we rename

* add some more aliases for common search terms

* don't doc ignore any public examples in core

* don't ignore public doc examples in ssr

* don't ignore examples in the dioxus package readme

* add a warning when you launch without a renderer enabled

* fix some outdated element docs

* add a bunch of examples to resource

* add notes about desktop events

* add more docs for use_resource

* add on_unimplemented hint to Dependency

* fix some unresolved links

* add examples to each of the router traits

* add not implemented errors for router traits

* add an example to the routable trait

* expand rsx macro docs

* improve memo docs

* update the dioxus readme

* mention dioxus crate features in the docs

* fix a bunch of doc tests

* fix html doc tests

* fix router doc tests

* fix dioxus signals doc tests

* fix dioxus ssr doc tests

* fix use_future example in the hooks cheat sheet

* add a javascript alias for eval

* fix hook explanation values

* remove unused embed-doc-image dependency
2024-06-06 18:15:17 -07:00
Evan Almloff 05eaca320f fix empty docs clippy warning 2024-05-03 13:41:48 -05:00
Evan Almloff fc2b441ee1 Fix memorization for the fragment component (#2360) 2024-04-26 00:48:06 -04:00
Evan Almloff 2e7b8cb178 unwind panics into error boundaries 2024-03-13 18:55:57 -05:00
Evan Almloff 162b033c36 provide feature hints for the dioxus crate as well 2024-02-09 12:23:57 -06:00
Evan Almloff 50e3216d8b convert T into signals automatically 2024-01-29 13:36:39 -06:00
Jonathan Kelley 14651a3573 Change context api to panic with nice error message 2024-01-15 18:02:58 -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
Evan Almloff 36e9eb1160 partially restore spreading attributes 2024-01-14 15:21:19 -06:00
Jonathan Kelley 1dde044697 remove cx.render 2024-01-13 21:12:21 -08:00
Jonathan Kelley 2ae3241cc0 Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
Evan Almloff d51b6268eb restore error boundaries in core 2024-01-11 17:20:53 -06:00
Evan Almloff 3267ddec10 more consistent naming of the root component in core 2024-01-11 15:23:37 -06:00
Evan Almloff 1794debf79 fix components that take no arguments 2024-01-11 11:11:44 -06:00
Evan Almloff aed29b1dec separate mount information from VNodes 2024-01-09 10:09:08 -06:00
Jonathan Kelley 211dd64d92 Merge branch 'master' into issue-1179 2024-01-08 09:39:41 -08:00
Evan Almloff aefa8a2431 use boxed slices instead of vecs where possible 2024-01-07 13:41:39 -06:00
Evan Almloff 5b6f9d6b80 fix merge 2024-01-06 08:58:49 -06:00
Evan Almloff 4013341b6c hello world example working 2024-01-05 18:01:05 -06:00
Evan Almloff 3865f44081 make desktop compile 2024-01-05 14:39:45 -06:00
Evan Almloff 32b15fc851 make core compile 2024-01-05 12:25:18 -06:00
Evan Almloff 0c76770da0 remove a lot of unsafe 2024-01-05 10:57:05 -06:00
Evan Almloff f42ef3ef9d remove more lifetimes 2024-01-05 08:39:22 -06:00
Evan Almloff 3ad16ddd37 rip out more lifetimes 2024-01-04 18:33:01 -06:00
Jonathan Kelley 9a6d745339 Refactor desktop into App type 2024-01-04 16:12:37 -08:00
Evan Almloff f6acaba061 fix compilation 2024-01-04 17:04:56 -06:00
Evan Almloff 6141aeb037 polish the throw trait 2023-11-07 18:24:07 -06: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
Jonathan Kelley 9b0244ee5c fix: use ready nodes in more places 2022-12-25 01:37:00 -05:00
Jonathan Kelley 85f6ea0545 feat: expand error boundary concept 2022-12-23 23:59:10 -05:00
Jonathan Kelley 2fa3fe1fc0 fix: use arcwake instead of rcwake 2022-12-20 11:13:06 -08:00
Jonathan Kelley d3be971f4e chore: rollback to option instead of anyhow 2022-12-19 18:06:13 -08:00
Jonathan Kelley 7c3d308ab5 chore: make warnings go away 2022-11-29 16:31:04 -05:00
Jonathan Kelley 0e5a59f9ed wip: error boundary 2022-11-22 18:38:27 -08:00