DioxusLabs / DioxusLabs/dioxus

hotpatching breaks hotreloading

Open
#5,317 1 comment 10 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

rust/css/tailwind changes are not reflected to the web window when the flag `--hotpatch` is present.

**Steps To Reproduce**

Steps to reproduce the behavior:

- `dx serve -p app`:
css hot reload works in the browser: web displays the dioxus loading and toasts.
No wasm error in console.

- `dx serve -p app --hotpatch`
dx logs the hotreloaded css/rs file changes.
But web window doesn't display dioxus loading screen nor toasts ; refresh doesn't reflect changes either.
I have to recompile then manually refresh the web window.
Console shows the following error:
`Uncaught (in promise) TypeError: import object field '__wbindgen_placeholder__' is not an Object`

**Expected behavior**

I'd expect `--hotpatch` to perform both hot-reloading and binary patching.

**Environment:**

- Dioxus version: 0.7.3
- Rust version: 1.95 nightly
- OS info: EndeavourOS wayland running firefox, all packages up to date (15/02)
- App platform: web (didn't try on desktop), project is a workspace running dioxus fullstack,
- Running cranelift + wild on target.x86_64* not on target.wasm*.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.