Skip to content
Back to skills

Dioxus Knowledge Patch

ASecurity

Dioxus

  • 25 stars
  • 0 votes
  • 0 copies
  • 13 views
  • Added September 5, 2026
developmentjavascriptrustgojavareacttestingapifrontendbackendfullstack

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill dioxus-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dioxus Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dioxus Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-dioxus-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-dioxus-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dioxus-knowledge-patch
description: Dioxus
version: "0.8.0-alpha.4"
license: MIT
metadata:
  author: Nevaberry
---



# Dioxus Knowledge Patch

> [!CAUTION]
> Current prerelease: `0.8.0-alpha.4`. Prerelease guidance may change before stable release.

Load this skill when migrating Dioxus code, selecting Cargo features, working with
reactive state or server functions, configuring DX builds, or integrating renderers
and ecosystem components. Use the topic references for complete examples and
version-specific behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migration notes](references/migration-edge-cases.md) | Crate and import renames, feature gates, form defaults, dependency upgrades, deprecations |
| [Components and reactivity](references/components-reactivity.md) | Signals, stores, props, callbacks, hooks, suspense, errors, events, file input |
| [Assets and UI](references/assets-styling-ui.md) | Asset discovery and reads, CSS modules, Tailwind, RSX, document head, JavaScript |
| [Fullstack and routing](references/fullstack-routing.md) | Axum, server functions, forms, streams, WebSockets, SSR, hydration, static generation, navigation |
| [CLI and bundling](references/cli-platforms-bundling.md) | Installation, scaffolding, development, deployment, desktop packaging, mobile toolchains and manifests |
| [Renderers and internals](references/renderers-testing-internals.md) | Custom renderers, Native, desktop windows, LiveView, hot-patching, WebAssembly splitting, tests |
| [Ecosystem components](references/ecosystem-sdk-components.md) | Component installation, SDK utilities, timers, styled controls, overlays, collections |

## 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`, or keep the `dioxus::core` and
`dioxus::core_macro` re-exports.

### Base types removal

> **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 features. The router dependency now
points from `dioxus-fullstack-core` to `dioxus-router`.

### RSX name resolution

> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.

HTML element builders use ordinary Rust name resolution. Qualify an element
when its name collides with an item in scope, such as `html::main` in a crate
with a `main` function. `rsx!` expands to a const builder API callable directly.

### Named keyboard keys

> **Prerelease (`2026-10-dioxus-release-notes-alpha`):** This guidance may change before stable release.

Use `Key::Named(NamedKey::Enter)` in place of `Key::Enter`. Import `NamedKey`
alongside `Key` from `dioxus::prelude`, `dioxus_html`, or `dioxus_native::prelude`.

### Component props across crates

> **Prerelease (`0.8.0-alpha.0`):** This guidance may change before stable release.

Props generated by `#[component]` are `#[non_exhaustive]`. From another crate, use the
component through RSX in place of a props struct literal, and include `..` when
destructuring props.

### 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 later.

### Earlier migration edges

Replace `dioxus-lib` with `dioxus`; enable `lib` with default features disabled
to preserve the former feature selection. Migrate `ReadOnlySignal<T>` props to
`ReadSignal<T>`. Use the Dioxus-provided `ServerFnError` instead of importing it
from `server_fn`. See the migration reference for explicit runtime imports.

Run `cargo update` if older dependencies in `Cargo.lock` prevent 0.7.5 code from
compiling, even if the top-level crate is current. Await desktop `new_window`.
The `dioxus-tui` renderer is deprecated; its source is on Blitz's `legacy` branch.

## Cargo features and entry points

Use `dioxus::launch(App)` with Cargo renderer features. With default features
disabled, `launch` exposes launch APIs; `signals` exposes signals and stores;
`document` exposes document and history; `asset` exposes the asset resolver;
`ssr` exposes standalone SSR; `logger` exposes the default tracing subscriber.
Enable `hot-reload` explicitly for RSX reload on supporting renderers.

For fullstack builds, enable `dioxus/fullstack` on both sides, `dioxus/web` for
the WASM client, and `dioxus/server` for the backend. The mobile renderer feature
is `dioxus/mobile`. Enable `third-party-renderer` when supplying your own renderer
with the built-in renderer features disabled.

### Renderer-independent library facade

> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.

UI libraries can depend on `dioxus-core` for the VirtualDOM, `rsx!`, signals,
hooks, stores, HTML, and document APIs. Default features cover these APIs;
`ssr` and `wasm-split` are opt-in.

## Reactive state and async work

A signal read during render subscribes that component. A parent can pass a signal
to a child and leave the subscription to the child. `use_signal` storage belongs
to its creating component and is dropped on unmount despite copied handles.
Use `use_signal_sync` or `use_store_sync` when a handle must cross a thread boundary.

Derive `Store` for field-level subscriptions and collection entry tracking.
Projected fields have type `Store<T, Lens>`; helpers can use `Readable` or
`Writable` bounds. An optional field's `transpose()` yields an optional lens.
`#[store]` methods work on root and projected stores.

`use_resource` tracks signal reads while polling, replaces its future when a
tracked signal changes, and publishes even equal results. `use_action` cancels
pending work when `.call(input)` starts a new invocation.

`use_loader` returns `Result<Loader<T>, Loading>`: applying `?` suspends pending
work or forwards an error. Initialize independent loaders before applying `?`.
Use `use_resource(...).suspend()?` with `SuspenseBoundary`, or supply a
child-specific fallback with `with_loading_placeholder`.

## Forms, server calls, and hydration

Web forms submit by default in 0.7. Call `event.prevent_default()` synchronously
to cancel submission. A button's Dioxus `onclick` suppresses its default click
action inside a form; handle intended submission with the form's `onsubmit`.

Use `dioxus::serve` for hot-patchable Axum routers. Server functions default to
JSON bodies and can declare stable method, path, and query arguments. For
distributed native clients, explicit method and path attributes avoid changes
to anonymous server-function URL hashes when implementations change.

Deserialize a `FormEvent` with `parsed_values()` and wrap the result
in `Form`; input `name` attributes match payload fields. Use `MultipartFormData`
for multipart requests, `FileStream` for files, and `Streaming<T, E>` for typed
streams. `use_websocket` exposes `send`, `recv`, and reactive `status()`.

`use_server_future` suspends and serializes results for hydration;
`use_server_cached` serializes synchronous server values for reuse during hydration.
Keep side effects out of their closures because hydration can skip client execution.
Native components render locally without `FullstackContext` or hydration data.

HTML streaming's first chunk locks status and headers. Render critical head
elements and resolve status-setting work before it commits; call
`commit_initial_chunk()` yourself when rendering without `Router`.

## Assets and styling

Migrate `mg!` references to `asset!`. Dependency assets ship with the application;
image filenames are hashed and CSS is minified and deduplicated. Use
`AssetOptions::image()` for image transformations. Mark indirectly loaded static
assets `#[used]` to retain them. Put fixed-path files in project-root `public/`.

`css_module!` generates scoped class and ID constants; dereferencing a selector
adds its stylesheet. Include document styles with `document::Stylesheet`.
DX detects root `tailwind.css`, starts a Tailwind v3 or v4 watcher, and writes
`assets/tailwind.css` by default; include the generated stylesheet in the head.

## Development, routing, and deployment

Run `dx doctor` to inspect toolchains. Use
`dx serve @client --package frontend @server --package backend` for separate packages. `dx bundle --json-output`
emits machine-readable messages; the reference explains how to decode paths.

When hot-patching, recreate or migrate live state whose struct fields change.
A patch resets application-crate thread-local variables, retains
those in unchanged dependencies, and needs a restart for ordinary static edits.

For single-package fullstack web deployment, run the bundled `server` beside
`public/`. Set `IP=0.0.0.0` for connections forwarded into a container. For static
hosting, `dx bundle --web --ssg` produces a `public` directory to publish.

The router tries static, then dynamic, then catch-all path segments. Invalid or
missing named query values use the field type's default when it implements
`FromStr + Default`. Add a root catch-all to render an unmatched-URL page.

## Component registry compatibility

### Alpha component sources

> **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 component branch targets Dioxus
0.7 and prevents resolution on alpha.2 and alpha.3. Copy component sources and
the theme stylesheet from the components repository's `0.8` branch and use
that branch for `dioxus-primitives`.

### Registry transport installation

> **Prerelease (`2026-11-dioxus-release-notes-alpha`):** This guidance may change before stable release.

Use `cargo binstall` or `install.sh` for prebuilt alpha.4 DX binaries when cloning
HTTPS or SSH component registries. A source build with
`cargo install dioxus-cli@0.8.0-alpha.4` still lacks the registry transport fix.

Files in this skill

  • SKILL.md9.4 KB
  • coverage.json3.6 KB
  • references/assets-styling-ui.md8.2 KB
  • references/cli-platforms-bundling.md14.4 KB
  • references/components-reactivity.md10.5 KB
  • references/ecosystem-sdk-components.md6.3 KB
  • references/fullstack-routing.md12.5 KB
  • references/migration-edge-cases.md8.1 KB
  • references/renderers-testing-internals.md7.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.