Commit Graph
6421 Commits
Author SHA1 Message Date
Evan Almloff 5b5e3d3960 Fix ssg race condition (#3521)
* Fix server crash logging and opening fullstack apps

* Fix the event handler memory leak

* Add a regression test for memory leaks

* add a component to the memory leak test

* Fix race condition during SSG

* move route prerendering into a separate stage

* Fix static site generation with dx serve

* only proxy the fullstack server if ssg is disabled

* test nested-suspense with ssg in playwright
2025-01-08 19:53:51 -08:00
Evan Almloff ecc419df0a Fix ssg race condition (#3521)
* Fix server crash logging and opening fullstack apps

* Fix race condition during SSG

* move route prerendering into a separate stage

* Fix static site generation with dx serve

* only proxy the fullstack server if ssg is disabled

* test nested-suspense with ssg in playwright
2025-01-08 19:52:10 -08:00
Jonathan Kelley 343c48f5ad fix: viewBox translation by not accidentally stringifying literals (#3527)
* fix: don't double stringify lits

* also split off namespaces in translation
2025-01-08 16:12:48 -08:00
Miles Murgaw a3812d66da Fix: Asset Cache On Windows & Asset Status (#3525)
* fix: asset caching on windows
* fix: asset status
2025-01-08 15:08:18 -08:00
Evan Almloff 5ea0867a34 Fix the test_stream function running after the stream is closed (#3396) 2025-01-08 15:00:05 -08:00
Jonathan Kelley 5815e05014 fix: add additional lock when calling wait_for_work on android (#3524)
* fix: add additional lock when calling wait_for_work

* simplify
2025-01-08 14:45:23 -08:00
Tobias DomhanandJonathan Kelley 6755accbdc fix: Handle unicode in webview events. (#3386)
* Handle unicode in webview events.

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-08 14:32:57 -08:00
BleemIs42 20cdafbf16 Fix dx bundle fails when no assets are copied (#3519) 2025-01-08 08:56:51 -08:00
Evan Almloff c8d6444e88 Improve error message when dx is called on a virtual or library package (#3505)
* Improve error message when dx is called on a virtual or library package
2025-01-07 23:30:52 -08:00
Evan Almloff d890cc72ac Fix mounted event after initial hydration (#3480)
* trigger queued mounted events immediately after hydrating

* add a playwright test to prevent regressions
2025-01-07 19:52:27 -08:00
Evan AlmloffandJonathan Kelley d41ab3a756 Fix hydration of suspense fragments that contain text nodes (#3287)
* Fix hydration of suspense fragments that contain text nodes

* fix release builds

* disable link deduplication

* restore meta tag deduplication

* Add a test for the failed hydration case

* make changes to the document trait non-breaking

* remove info log from server future hook

* restore default implementation - this was also a breaking change

* fix semver breakage

* clean up server_future

* Cleanup unused code

* fix clippy

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-07 19:47:23 -08:00
Evan Almloff 57d637184f Fix Routable::parent with hash segments and query params (#3484)
* Fix Routable::parent with hash segments and query params
2025-01-07 15:42:13 -08:00
Jonathan Kelley bb3fd38231 feat: document and re-export dioxus-cli-config (#3515)
* feat: document and re-export dioxus-cli-config
2025-01-07 15:39:14 -08:00
Marc EspinandJonathan Kelley d75cb59491 feat: Reexport the Warning trait in dioxus-signals (#3321)
* re-export warnings under dioxus::warnings

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-07 14:07:46 -08:00
Mahmoud 4d484df1a0 fix(cli): get ip addr & port number from config (#3369) 2025-01-07 13:39:45 -08:00
charles-r-earp b348a725de Get server address from dioxus-cli-config. (#3494) 2025-01-07 13:39:25 -08:00
Miles Murgaw 273b70e9d6 Dioxus Playground Hot Reload Support (#3098)
* feat: playground hr support

* feat: playground hot-reload support

* revision: playground hot reloading
2025-01-07 13:07:58 -08:00
Yongkie WiyogoandYongkie Wiyogo 0a72cbac5b Fix compiler error in examples/fullstack-auth (#3359)
Co-authored-by: Yongkie Wiyogo <6004558-ywiyogo@users.noreply.gitlab.com>
2025-01-07 13:00:54 -08:00
Jonathan Kelley 773d805037 fix: bump futures-channel to prevent locked versions from conflicting (#3510)
* chore: hoist some versions, drop pretty_env_logger

* bump futures-channel
2025-01-07 12:52:01 -08:00
Plebshotandfabian ea8fd16153 Log errors with adb (#3493)
Co-authored-by: fabian <fabian@staff.identeco.de>
2025-01-07 12:40:35 -08:00
Evan Almloff 19ca7075d6 Fix the event handler memory leak (#3508)
* Fix the event handler memory leak

* Add a regression test for memory leaks

* add a component to the memory leak test
2025-01-07 11:44:54 -08:00
Amirhossein Akhlaghpour 2ad5d1beb8 fix: doc (#3387)
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
2025-01-07 10:42:18 -08:00
Evan Almloff 807cfd29b7 Use a better default browser list and fail gracefully when css parsing fails (#3509) 2025-01-07 10:38:05 -08:00
Liigo Zhuang 6071fde2c4 the main exe to be bundled should have '.exe' extension on windows (#3482)
`hotdog.exe` instead of `hotdog` in directory `target\dx\hotdog\bundle\windows\`
2025-01-02 15:01:33 -05:00
Youn MéloisandJonathan Kelley 0ffa91df65 remove version pin on tao (#3485)
* remove version pin on tao
instead on including 0.31.0 as a breaking change, removing the pin upgrades tao automatically to 0.30.8

* prefer 0.30.8 as minimum tao

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-02 14:59:54 -05:00
Jonathan Kelley beae32b190 fix: pin cargo-msrv to older version (#3486)
* fix: pin cargo-msrv to older version

* lock msrv
2025-01-02 14:26:38 -05:00
Jonathan Kelley 9e2f1b4e1d Fix: some typos 2025-01-02 14:00:56 -05:00
Sam JudeandSam 04841063aa Fixed asset path resolver to use the second segment instead of first. (#3472)
Co-authored-by: Sam <@>
2025-01-02 13:53:13 -05:00
Gino Valente 04282ef889 Make Routable derive macro hygienic (#3437) 2024-12-31 20:03:32 -05:00
Liigo Zhuang 26132cfc59 Keep rebuilding toast alive until dismissed manually or there's a build error (#3455) 2024-12-26 12:42:26 -05:00
Rhaskia d20f85b318 Return None in autodetect on cargo feature on other platforms (#3445) 2024-12-24 16:10:18 -05:00
Florian Bartels 61b55c9d37 Fix path to image (#3443) 2024-12-23 17:34:37 -05:00
Evan Almloff 01ebccc269 Assume the virtual dom is not rendering while not diffing components (#3406)
* Invert when the rendering flag is set

* Add a playwright test to make sure effects, and web-sys integration is working

* fix playwright test
2024-12-20 12:08:57 -08:00
Liigo Zhuang cf1940cdac fix copy assets progress by moving fetch_add out of trace!(). (#3385) 2024-12-20 12:03:50 -08:00
Evan Almloff 21fdecd219 Don't panic if the duration is negative in try_get_or_insert (#3413) 2024-12-20 12:02:07 -08:00
Evan Almloff ecf8d16f3e Fix event closure invoked recursively (#3405) 2024-12-20 12:01:31 -08:00
Evan Almloff aab1258f0e remove the file engine feature in the html crate (#3392) 2024-12-20 12:00:03 -08:00
Jonathan Kelley c2952a79f8 Release: dioxus 0.6.1 2024-12-17 18:30:08 -08:00
Jonathan Kelley 8b553063ea Add a guide for releasing Dioxus (#3384)
* add a release guide

* Add note about conferring with community

* Add link to cargo-workspaces

* Add note about why we use cargo-workspaces

* extra note about building docs

* add note about docs.rs not building

* add note about backports

* add note about updating docsite

* more notes
2024-12-17 18:12:37 -08:00
Evan Almloff df719241fa Improve the second example in the read write same scope warning (#3374) 2024-12-17 15:32:01 -08:00
Evan Almloff c0e01f99af Fix onmounted event triggering many times (#3346)
* Fix event handler diffing

* Add headless tests for the onmounted event

* fix typo triggerd -> triggered
2024-12-17 15:21:15 -08:00
Miles Murgaw 01c5716128 revision: template creation message (#3320) 2024-12-17 15:19:15 -08:00
Anatol UlrichandAnatol Ulrich 0596e53eb5 fix peek() example (#3375)
Co-authored-by: Anatol Ulrich <e+github@mail.taugt.net>
2024-12-17 15:18:26 -08:00
Jonathan Kelley 040dc54200 add helpful message for obscure cargo failures (#3380) 2024-12-17 15:14:28 -08:00
Jonathan Kelley 94b86477b5 fix: throw error when asset is empty (#3379)
* fix: throw error when asset is empty
* Use std::path::absolute to fix windows unc problems
* fix: don't use canonicalize at all on windows
2024-12-17 15:14:01 -08:00
Jonathan Kelley fa48016d0c Fix space remaining (again) (#3377)
This commit was tested in a separate project
2024-12-17 13:42:09 -08:00
Jonathan Kelley 95cde59606 fix space remaining mis calc in cli frame causing tears (#3371) 2024-12-17 10:56:16 -08:00
Jonathan Kelley eb76d48eae Fix: unwraps while ignoring log lines (#3370) 2024-12-16 17:13:52 -08:00
Jonathan Kelley 86082cec5c Chore: Bump and release extension 2024-12-12 14:06:47 -08:00
Miles MurgawandJonathan Kelley ccf500c77b Feat: CLI wasm-bindgen-cli Installer (#3335)
* feat: wasm-bindgen-cli installer

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-12-11 11:27:11 -08:00