dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Fix escaping ascii codes on serializing reload messages

Open Exotik850 opened this issue 1 year ago • 2 comments

Fixes 1586

Exotik850 avatar Dec 10 '23 05:12 Exotik850

I still get the same error when I change the rsx like this:

div {
   "hello world"
}

to

div {
   "hello\tworld"
}

The error

thread '<unnamed>' panicked at /Users/evanalmloff/Desktop/Github/dioxus/packages/hot-reload/src/lib.rs:38:83:
called `Result::unwrap()` on an `Err` value: Error("invalid type: string \"Hello\\tWorld!\", expected a borrowed string", line: 1, column: 167)

We might need to manually modify the formatted json if serde-json-fmt isn't working

ealmloff avatar Dec 10 '23 15:12 ealmloff

Moved this back to draft until the right fixes are applied.

jkelleyrtp avatar Jan 08 '24 18:01 jkelleyrtp