Commit Graph
4705 Commits
Author SHA1 Message Date
Jonathan Kelley 024285c548 fix: don't send hot-reload if app is building (#3607) 2025-01-20 18:58:50 -08:00
Jonathan Kelley 6c907b1c20 fix: restore file in release mode 2025-01-20 18:36:17 -08:00
Jonathan Kelley b6475bdc0a fix: don't ignore manganis assets (#3606) 2025-01-20 18:35:41 -08:00
Jonathan Kelley c2ad99406d Fix: don't overwrite pos/size when dx-rebuilding 2025-01-20 18:02:59 -08:00
Jonathan Kelley 8334f7fbaa feat: device hot-reload, tools-relative adb, auto port bind (#3586)
* wip: bind to 0.0.0.0 instead of 127.0.0.1

* dont hang in background - ignore suspend commands when tty is disabled

* use system adb

* pass configs through to android mobile launch

* fix: line sizes + clear pushes frame

* dont resume window state on mobile

* fix screen sizing for ipad

* attempt and fail to implement codesigning

* Clippy and note about safety in android bindings
2025-01-20 17:42:13 -08:00
Evan Almloff aba2e73025 Simplify fullstack auth example (#3598) 2025-01-20 16:35:19 -08:00
Christopher Serr eaf9f80abd Fix: Only Resize WebView Associated With Window (#3584)
When resizing a window, Dioxus previously accidentally resized every
single webview to the dimensions of the window that just got resized.
This fixes it so only the webview that is associated with the window is
resized.
2025-01-17 12:00:38 -08:00
Jonathan Kelley a729968ee4 fix: window state preservation by soft-killing the process (#3579) 2025-01-16 17:53:09 -08:00
Evan AlmloffandJonathan Kelley e22ea0c2ff Fix repeated subscription to dropped scope leak (#3569)
* Fix repeated subscription to dropped scope leak

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-16 17:35:14 -08:00
CathalandJonathan Kelley c7951b7dd5 feat(cli): add feature to disable downloads (#3465)
* feat(cli): add feature to disable downloads

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-16 16:49:30 -08:00
Jonathan Kelley cd121f2828 fix: messy ui for package types in bundle 2025-01-16 15:34:18 -08:00
19d5fae12d Fix outdir not work when run dx bundle --platform web --outdir mydir (#3572)
* Make legacy asset dir optional
* properly implement outdir

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
Co-authored-by:  Nathy-bajo <bajon7680@gmail.com>
2025-01-16 15:17:33 -08:00
Jonathan Kelley db16de15c5 fix: don't accidentally generate .d.ts files with wasm-bindgen (#3577)
* no typescript flag

* move field
2025-01-16 13:27:07 -08:00
Evan Almloff 857c3e232e Fix rsx expression autocomplete (#3568)
* Fix autocomplete in node and attribute expressions

* Fix release expansion

* revert changes to expr_node

* fix rsx expansion in release mode
2025-01-14 10:51:39 -08:00
James BenzeandJonathan Kelley d5a04c69ba Add server context to suspense resolution (#3552)
* Add server context to suspense resolution

While this was done correctly in the streaming case, non-streaming
suspense resolution didn't recieve the server context.  This meant that
anything that required the context after the point of suspension would
find it missing.

* fmt

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-13 12:30:00 -08:00
sertschgiandJonathan Kelley 25a64d97c0 Fixed the multiple window closing issue, where the two multiwindow examples weren't working. (#3499)
* fixed window when multiple windows not closing

* fixed window when multiple windows not closing

* fixed accidental includes

* polished

* fix last window closing hiding app and rc hardcount

* find the suspect strong count holders and fix them

* Use the proper type alias

* fmt

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-13 12:10:22 -08:00
Anakael 36522cf3ea fix: cli pakage name search (#3561) 2025-01-13 11:18:50 -08:00
Plebshotandfabian a621cb8044 docs: demonstrate extending both global and element attributes (#3555)
Co-authored-by: fabian <fabian@staff.identeco.de>
2025-01-13 10:34:51 -08:00
Miles Murgaw 1419d9c71b Fix: Enable keep_fn_names In SWC Mangling (#3539)
* fix: swc, keep fn name

* fix: don't update swc
2025-01-13 10:31:40 -08:00
Evan Almloff 2924ec4678 Fix pointer provenance in const rust with zero sized type enum variants (#3532) 2025-01-10 13:01:15 -08:00
Evan Almloff c4b5e7dbf1 Remove doctor command which doesn't do anything (#3536) 2025-01-10 12:55:11 -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
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
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
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
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
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