Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dioxus Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-dioxus-knowledge-patch)
---
name: dioxus-knowledge-patch
description: Dioxus
version: "0.8.0-alpha.4"
license: MIT
metadata:
author: Nevaberry
---
# Dioxus Knowledge Patch
Load this skill when implementing, migrating, configuring, or troubleshooting
Dioxus applications, libraries, renderers, and DX workflows. Use the quick
reference for common changes and the topic files for detailed behavior and examples.
> [!CAUTION]
> Prerelease guidance may change before stable release. The current prerelease
> version is `0.8.0-alpha.4`. Item-level markers identify prerelease guidance.
## Reference index
| Reference | Topics |
| --- | --- |
| [Migration notes](references/migration-edge-cases.md) | Crate and import renames, feature gates, dependencies, props, form defaults, renderer API migrations, deprecations |
| [Components and reactivity](references/components-reactivity.md) | Signals, stores, context, props, callbacks, actions, resources, suspense, errors, events |
| [Assets, styling, and UI](references/assets-styling-ui.md) | Asset bundling and access, CSS modules, Tailwind, document head, RSX, JavaScript evaluation |
| [Fullstack and routing](references/fullstack-routing.md) | Server functions, HTTP errors, forms, streams, WebSockets, native clients, SSR, hydration, navigation, WASM splitting |
| [CLI, platforms, and bundling](references/cli-platforms-bundling.md) | Installation, scaffolding, workspaces, dev server, logs, toolchains, permissions, manifests, deployment, installers |
| [Renderers, testing, and internals](references/renderers-testing-internals.md) | Desktop windows, Dioxus Native, custom renderers, LiveView, hot-patching, SSR tests, contributor tooling |
| [SDK and styled components](references/ecosystem-sdk-components.md) | Component installation, SDK crates, timers, storage, geolocation, notifications, controls, dialogs, virtual lists |
## Breaking changes and deprecations
### VirtualDOM crate and import names
> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.
For direct dependencies on the former VirtualDOM crates, migrate `dioxus-core`
to `dioxus-vdom`, `dioxus-core-macro` to `dioxus-vdom-macro`, and
`dioxus-core-template` to `dioxus-vdom-template`. Change `dioxus::dioxus_core`
imports to `dioxus::dioxus_vdom`; `dioxus::core` and `dioxus::core_macro` remain usable.
### Removed base types
> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.
Import `event_bubbles` from `dioxus_html` and `HotReloadingContext` from
`dioxus_rsx_hotreload`. Remove `AnyFmtMarker` and the `dioxus` feature on
`manganis` and `manganis-core`; replace `dioxus-html`'s `hot-reload-context`
feature with `hot-reload`.
### Router feature and dependency direction
> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.
Remove `streaming` from `dioxus-router`'s Cargo features. The dependency now
points from `dioxus-fullstack-core` to `dioxus-router`.
### Component props across crates
> **Prerelease (`0.8.0-alpha.0`):** This guidance may change before stable release.
Generated component props are `#[non_exhaustive]`. From another crate, use the
component through RSX instead of constructing a props struct literal, and include
`..` when destructuring props.
### RSX element name resolution
> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.
Alpha.2 moves HTML element builders from `dioxus_elements` into ordinary Rust
name resolution. Qualify collisions, such as `html::main` in a crate with a
`main` function. `rsx!` expands to a const builder API that can be called directly.
### Named keys
> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.
In alpha.3, match `Key::Named(NamedKey::Enter)` instead of `Key::Enter`.
Import `NamedKey` alongside `Key` from `dioxus::prelude`, `dioxus_html`, or
`dioxus_native::prelude`.
### Custom renderer attribute values
> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.
In alpha.3, `WriteMutations::set_attribute` takes `BorrowedAttributeValue<'_>`
instead of `&AttributeValue`. Handle `BorrowedAttributeValue::Text` as `&str`
and remove the `Listener` match arm.
### Linux desktop menus
> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.
Alpha.2 requires `linux-libxdo` on a direct `dioxus-desktop` dependency for
predefined Copy, Cut, Paste, or Select All items on Linux. Alpha.3 removes that
feature and the `libxdo-dev` build dependency; remove both when upgrading.
### Timer imports
> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.
Move `use_interval`, `use_timeout`, `use_debounce`, and `sleep` imports from
`dioxus_sdk_time` to `dioxus_timers`. Add `dioxus-timers` directly for alpha.4;
the published `dioxus` crate gains the `timers` re-export feature in a later release.
### Stable API migrations
- Replace `dioxus-lib` with `dioxus`; preserve its former feature selection with
`default-features = false` and `features = ["lib"]`.
- Migrate `ReadOnlySignal<T>` props to `ReadSignal<T>`.
- Replace `mg!` asset references with `asset!`. Start image options with
`AssetOptions::image()` when migrating `ImageAssetOptions::new()`.
- `dioxus-tui` is deprecated; its source is on Blitz's `legacy` branch under
`packages/dioxus-tui`.
### Form defaults
Web forms submit by default in 0.7. Call `event.prevent_default()` synchronously
in the form’s `onsubmit` handler to cancel submission. Desktop blocks navigation
from form submissions separately. A Dioxus `onclick` handler on a button inside
a form suppresses the button’s default click action. Use the form’s `onsubmit`
handler for intended submission.
## Components and reactive work
- A signal read during render subscribes the reading component. Passing a signal
to a child lets the child own that subscription.
- Unmounting the component that created a `use_signal` value drops that value,
even if other components retain copies of its handle.
- Derive `Store` for nested state; generated field methods subscribe to or update
specific parts. When `T` derives `Store`, pass a map entry lens to a
`ReadStore<T>` prop to retain its field accessors.
- `use_action` cancels a pending invocation when `.call(input)` starts another;
`.value()` provides a reactive optional result.
- Initialize independent `use_loader` calls before applying `?` so they start
together. Pending results suspend; errors go to an error boundary.
- `use_resource` tracks signal reads while polling its future and replaces the
future when a tracked signal changes; equal results are still published.
## Fullstack and routing
- Use `dioxus::serve` for hot-patchable Axum 0.8 routers. Server functions accept
Axum handler arguments and default to JSON bodies.
- Give distributed native clients explicit method and path attributes: the hash
in an anonymous `#[server]` URL can change when its implementation changes.
- Use `ServerEvents<T>` for server-sent events, `Streaming<T>` for typed streams,
and `FileStream` for file uploads or downloads.
- Use `use_websocket` for async `send` and `recv` plus reactive `status()`;
`recv` waits for the connection.
- Streaming's first HTML chunk locks status and headers. Resolve status-setting
work before it commits; call `commit_initial_chunk()` when rendering without `Router`.
- Keep side effects out of `use_server_cached` and `use_server_future` closures:
hydration can reuse serialized results and skip those closures on the client.
- Route matching tries static segments, then dynamic segments, then catch-alls.
Use a root catch-all to render a page for unmatched URLs.
- Use `#[wasm_split("/settings")]` on a `Routable` variant to fetch its chunk
when visited. Deploy content-hashed chunks with the loader from the same build.
## Assets and development
- Retain an indirectly loaded asset with `#[used]` on its static declaration.
- Use `dioxus::asset_resolver::read_asset_bytes` to fetch a web asset or read one
from a native bundle, including Android.
- A project-root `tailwind.css` lets `dx serve` start the Tailwind watcher.
Include the generated stylesheet, normally `assets/tailwind.css`, in the document head.
- Run `dx doctor` for toolchain diagnostics. Use `@client` and `@server` to scope
Cargo options to one side of a fullstack build.
- Hot-patching resets application-crate thread-local variables and retains those
in unchanged dependencies. Restart for edits to ordinary static initializers.
### Hot-patching defaults
> **Prerelease (`0.8.0-alpha.0`):** This guidance may change before stable release.
`dx serve` enables Rust hot-patching by default and picks up `Cargo.toml` edits
during the development session.
### Component installation on alpha
> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.
On alpha.3, `dx components list`, `add`, and `update` fail with
`there is no TLS stream available`. The default branch also prevents dependency
resolution on alpha.2 and alpha.3. Copy component sources and theme CSS from the
components repository's `0.8` branch and use that branch for `dioxus-primitives`.
### Component registry transports
> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.
Install prebuilt alpha.4 DX binaries with `cargo binstall` or `install.sh` for
HTTPS and SSH component registries. A source build with
`cargo install dioxus-cli@0.8.0-alpha.4` still lacks the registry transport fix.