Commit Graph
6523 Commits
Author SHA1 Message Date
Henry 3ee3d0610d feat: Add head ordering doc part (#3771) 2025-04-04 10:55:27 -07:00
Henry 2e856ecb3b doc: Fix spawn doc (#3871) 2025-04-04 10:44:20 -07:00
Henry 83ea89b88c fix comment (#3929) 2025-04-04 10:43:28 -07:00
Evan Almloff 44025340c7 Fix windows CI by removing virtual file system cache (#3912)
* try to fix windows CI

* just remove the vfs logic
2025-04-04 10:40:54 -07:00
Avinash jainandEvan Almloff bdf87aadc7 fixed the bug when future restarts the state goes to ready instead of pending (#3617)
* fiexed the bug when future restarts the state goes to ready instead of pending

* fix typo

* Fix future and formatting

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2025-03-27 08:28:20 -05:00
Gabi dfc359cdfb adds feature server_fn_axum that compiles for wasm target (#3840)
The current `axum` feature and `server` feature are incompatible with wasm32-unknown-unknown target
due to:
1. depends on axum features not compatible with wasm
2. SSR requires reading the filesystem for index.html

With this patch I add the `server_fn_axum` feature which disables SSR and enables targeting
wasm32-unknown-unknown with server functions enabled.

Note that for this to work, `server_fn` depends on `inventory` and as stated in this docs depending on
the context you might need to expose and call [`__wasm_call_ctors`](https://docs.rs/inventory/latest/inventory/#webassembly-and-constructors)
(I needed that specifically for cloudflare workers)

change axum_server_fn feature for axum_wasm and include SSR tools there

This change additionaly make axum_server_fn feature additive by exposing a different
`DioxusRouterWasmExt` with only the wasm-compatible parts instead of exposing the
`DioxusRouter` trait under the same name.

Docs are updated to reflect this change.

rename axum_wasm to axum_core and update docs

fix typo

re-enable default-features for axum in dioxus-cli

re-enable axum default-features for liveview

re-enable default-features for axum for playwright-tests
2025-03-27 00:51:53 -06:00
MintSoup dc0f0dbd2c Fix later-attached wry event handlers not getting called (#3908) 2025-03-26 21:50:43 -06:00
Juan Vásquez 6bdb69e235 Fixed android app crashing when changing phone orientation (#3905) 2025-03-24 17:12:17 -07:00
Casey Kneale 9e09bcf3f7 trivial fix for documentation example for onclick handler of buttons (#3882) 2025-03-16 16:25:17 -07:00
Evan Almloff 09a4b5eb4e Return a 404 when paring the route fails (#3860)
* return a 404 when paring the route fails

* add a playwright test for fullstack routing status codes

* Fix new playwright test

* document SSRError

* Make SSRError public and fix clippy

* Move the error display bound to the routable trait

* fix clippy

* return a more generic 404 message

* fix router tests
2025-03-14 00:51:44 -07:00
hackartist 7b7357037f fix(server): Provide GoogleBot compatibility. (#3851) 2025-03-11 09:14:53 -07:00
Carlos Diaz-Padron dfc59a8465 Rename wgpu child window example for discoverability (#3837)
* rename wgpu child window example

* rename child window example in Cargo.toml
2025-03-10 11:01:23 -07:00
dependabot[bot] ae1ec6f3be build(deps): bump ring from 0.17.8 to 0.17.13 (#3841)
Bumps [ring](https://github.com/briansmith/ring) from 0.17.8 to 0.17.13.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md)
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-10 10:59:08 -07:00
Sabin Regmi 8b4ccb7817 update: modify outlet context initialization level (#3830) 2025-03-06 11:14:05 -06:00
hackartist 64106ba9af fix(fullstack): correct suspense handling in SSR renderer (#3829)
Move suspense handling to the correct position in the SSR renderer to ensure proper rendering when streaming is disabled.
2025-03-05 12:41:31 -06:00
Jonathan Kelley 650605f4d1 fix: merge conflict resulting in windows lint 2025-03-04 16:31:29 -06:00
SmileSky 91a218039e Update wry version to 0.50.1 (#3810)
Signed-off-by: SmileSky <mzdk100@foxmail.com>
2025-03-04 14:36:19 -06:00
Miles Murgaw 7c2cea9df7 Revision: Cleanup Dioxus.toml (#3802)
* revision: remove unused config options

* remove: unsused icon
2025-03-04 14:30:44 -06:00
Evan Almloff 8dbb652628 update the server function crate to 0.7 (#3560) 2025-03-04 14:29:56 -06:00
Miles Murgaw bcd34e9a98 update: tauri-bundler, tauri-utils (#3801) 2025-03-04 14:28:44 -06:00
Philipp Herzog 87d113bddd adjust muda requirements to rely on a single version (#3533) 2025-03-04 14:21:40 -06:00
Evan Almloff eccd75a1fe Switch the default server function codec to json (#3602)
* Switch the default server function codec to json

* test both input and output encoding
2025-03-04 14:20:56 -06:00
Jim 9967118784 Make GenericRouterContext pub (#3812) 2025-03-04 14:11:12 -06:00
Sabin Regmi 6a0ae17d56 Expose Outlet Context (#3788)
* Expose Outlet Context

* feat(router): expose OutletContext and use_outlet_context for improved accessibility

* Hide OutletContext properties

* Starts from 0 ?

* Clippy fix with Default
2025-03-04 12:34:22 -06:00
Evan Almloff f4c59e1188 Fix span locations in ifmt and components (#3823)
* Fix span locations in ifmt

* Fix component spans

* Blame extra children on the first child element

* fix clippy
2025-03-04 12:25:07 -06:00
Evan Almloff 0251221c69 Fix the typo checking CI (#3824) 2025-03-03 21:32:59 -06:00
David Tolnay 9361c3ecd9 Support concat! and other macros in asset path (#3809) 2025-03-03 12:55:59 -06:00
wdcocq 062ea02e07 Fix opened browser blocking dx serve (#3818) 2025-03-03 12:53:20 -06:00
Marco BergaminandMiles Murgaw b5381e748c Fix --target flag not passed to cargo when Platform == Server (#3595)
* Fix --target flag not passed to cargo when Platform == Server

* revision: use --server-target flag

---------

Co-authored-by: Miles Murgaw <milesmurgaw@gmail.com>
2025-02-27 16:14:10 -08:00
Evan Almloff 1fa172486b Add helper methods to provide a single clone server only context (#3483)
* Add helper methods to provide a single clone server only context

* fix clippy
2025-02-27 10:19:16 -08:00
Miles Murgaw b91d374479 Revision: Open Browser With Localhost (#3776)
* revision: open browser in localhost

* revision: use displayed address
2025-02-27 10:11:17 -08:00
Miles Murgaw 9c5f9882d9 Feat: CLI Debug Warning (#3779)
* feat: cli debug warning

* fix: fmt
2025-02-27 10:08:59 -08:00
Evan Almloff ceb1a0e796 Prevent default if an onclick event is triggered on a button under a form (#3804) 2025-02-27 10:08:26 -08:00
damccull ac8a5402f3 Add missing optional dependency to web feature (#3805)
The 'web' feature in Cargo.toml listed `dioxus-web` as a dependency but
it also needed to have `dioxus/web` in order to compile properly.
2025-02-27 09:55:33 -08:00
Evan Almloff 797e7492a1 Fix hot reloading component removal with formatted attribute values (#3559)
* Fix hot reloading component removal with formatted attribute values

* fix semvar
2025-02-24 13:18:21 -08:00
Klemen eff2e5d18e fixed wix assets path (#3763) 2025-02-24 12:08:48 -08:00
Jonathan Kelley bdeedc13eb feat: router-based wasm bundle splitting (#3683)
* feat: wasm-split base implementation

* kinda sorta works with the cli

* okay great it actually works

* fix: cache busting for chunks

* cleaned up version

* it works with the router

* wip: migrate to a faster linear solution using id remapping

* add a good harness

* it works completely on the docsite

* the super tight build works too

* make parallelizable

* works on the docsite but not the harness

* light cleanups, fix for both harness and docsite

* make codegen smaller by extract some shared functions to prevent monos

* chunking works, but tbd on tuning heuristics

* extract used module

* wip: cleaning up module

* wip: much better understanding of how imports work

* fix the call graph

* working again...

* wip: thinking about ifuncs

* ifunc approach works

* yes the ifunc approach works!!

* it all works completely even with chunks

* small cleanups

* comments

* actually locate all of the symbols

* clean up final implementation

* clean up tomls, revert some mono changs

* clean up, add some more comments / docs in places

* hoist more packages

* clean up impl a bit more

* clean cli

* move harness to playwright

* update playwright

* extract codgen

* add lazy to components

* Add docs to split loader

* clippy

* typos

* clippy, don't generate splits if not on wasm

* whoops, const

* Typos and docs

* enable optimizations in ci

* add optimizations to ci

* add wasm-split router feature

* parallel playwright?

* fix no case check

* disable pre-compress... think that might be the issue

* better logging, no default pre-compress, caching of shared symbols
* Fix: compressing assets

* fix non-interactive logging for serve

* cache playwright even on failure, use the cli with optimizations

* fix prebuild

* fix playwright webserver
2025-02-13 18:54:38 -08:00
Jonathan Kelley 14eb7597df fix: enable optimizations in cli builds for releases 2025-02-13 18:42:07 -08:00
Youn Mélois c13fb06bfa fix(interpreter): missing scrollTo boolean return value (#3734)
* fix(interpreter): missing scrollTo boolean return value

* docs(examples): unwrap scroll_to instead of discarding result values
2025-02-13 11:37:13 -08:00
Jonathan Kelley fc1f1c26f1 Release 0.6.3
dioxus@0.6.3
dioxus-cli@0.6.3
dioxus-cli-config@0.6.3
dioxus-core@0.6.3
dioxus-core-macro@0.6.3
dioxus-desktop@0.6.3
dioxus-document@0.6.3
dioxus-fullstack@0.6.3
dioxus-html@0.6.3
dioxus-router@0.6.3
dioxus-router-macro@0.6.3
dioxus-signals@0.6.3
dioxus-web@0.6.3

Generated by cargo-workspaces
2025-02-07 16:38:13 -08:00
Evan Almloff b443309f6e Hash and compare templates by value in debug mode (#3630)
* Hash and compare templates by value in debug mode

* add a regression test for layout state persisting after navigation

* More reliable static item merged detection
2025-02-07 16:35:32 -08:00
Andrew Voynov 9b71a33098 docs: improved issue templates (#3698) 2025-02-07 16:17:17 -08:00
Miles Murgaw 18feb0b38d feat: disable drop handler (#3680) 2025-02-07 16:10:05 -08:00
Miles Murgaw 8b9e246044 fix: stop failing silently (#3682) 2025-02-07 16:09:25 -08:00
Miles MurgawandJonathan Kelley 4199d545fe Allow Missing Prop Docs (#3692)
* revision: allow missing prop docs

* fix: link

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-02-07 16:09:08 -08:00
oletf f594a65b7e use main exe name without extension for bundler (#3696) 2025-02-07 16:08:23 -08:00
Youn Mélois ab91965cc0 fix onload and onerror parsing error (#3707)
regression error induced by 299b123 where serde default got removed from `load_error` attribute of `ImageData`.

```diff
pub struct ImageData {
-     #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
-     pub load_error: bool,
+     inner: Box<dyn HasImageData>,
}

// ...

+ struct SerializedImageData {
+     load_error: bool,
+ }
```
2025-02-07 16:08:00 -08:00
Evan Almloff 1c902ab729 Fix serving desktop+fullstack apps that have not set a server url (#3701)
* Fix serving desktop+fullstack apps that have not set a server url

* revert fullstack desktop example changes
2025-02-07 16:07:06 -08:00
Jonathan Kelley 36353eb90b fix cli link since we deleted it 2025-02-05 12:41:56 -08:00
Z 68ca4c3289 feat(examples): add Context API state management example (#3657)
* feat(examples): add Context API state management example (fixes #3612)

* refactor: code cleanup
2025-01-31 15:38:24 -08:00