fix: hotpatching fullstack (#4730)

* fix: hotpatching fullstack

* add hot-patching fullstack test

* add caching to playwright apt-get

* only run playwright on beta

* install binutils?

* dont commit lockfile

* ignore lockfiles

* make sure ld is in path
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-06 16:12:18 -07:00
1 parent a4aef33369
commit bee89b795d
15 files changed
+265 -38

No files matched your search

@@ -0,0 +1,2 @@
dist
target
@@ -0,0 +1,16 @@
[package]
name = "dioxus-playwright-fullstack-patch-test"
version = "0.0.1"
edition = "2021"
description = "Playwright test for Dioxus Web"
license = "MIT OR Apache-2.0"
publish = false
[dependencies]
dioxus = { path = "../../dioxus", features = ["fullstack"] }
[features]
web = ["dioxus/web"]
server = ["dioxus/server"]
[workspace]
@@ -0,0 +1,3 @@
body {
background-color: rgb(100, 100, 100);
}
@@ -0,0 +1,3 @@
#main {
background-color: red;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@@ -0,0 +1,36 @@
use dioxus::prelude::*;
const CSS: Asset = asset!("/assets/style.css");
const IMAGE: Asset = asset!("/assets/toasts.png");
fn app() -> Element {
let mut num = use_signal(|| 0);
rsx! {
document::Link {
href: CSS,
rel: "stylesheet",
}
img {
id: "toasts",
src: IMAGE,
}
button {
id: "increment-button",
onclick: move |_| async move {
let increment_amount = get_count().await.unwrap();
*num.write() += increment_amount;
},
"Click me! Count: {num}"
}
}
}
#[post("/api/get_count")]
async fn get_count() -> Result<i32> {
Ok(1)
}
fn main() {
dioxus::launch(app);
}