You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of Dioxus and I have encountered an issue when using emojis in the text. When an emoji is present in the text, I get the following error:
Uncaught (in promise) TypeError: Failed to execute 'decode' on 'TextDecoder': The provided ArrayBufferView value must not be shared.
at RawInterpreter.run (inline0.js:130:37)
at imports.wbg.__wbg_run_2ca7d9c27d6a5eb6 (app.js:612:25)
at app.wasm.dioxus_interpreter_js::unified_bindings::Interpreter::flush::h009ba4a86f46ba0f (app_bg.wasm:0x4f1ec6)
This only occurs when the text contains emojis. If I remove the emojis from the text, everything works normally.
Steps To Reproduce
this occurs when I use ul { "😃" } but I suppose it will happen for any element with any emoji
Steps to reproduce the behavior:
same as above
Expected behavior
emojis are displayed without error
Environment:
Dioxus version: v0.5.1
Rust version: 1.81.0, nightly
OS info: Windows Edge
App platform: web
The text was updated successfully, but these errors were encountered:
it also lets Dynamic Attributes work smoothly with rsx!
the main caveat is that the buffer gets copied every time this code is ran , I suppose the buffer could be checked against:
if(this.m.bufferinstanceofSharedArrayBuffer) ...
I suppose an issue should be opened on the sledgehammer_bindgen crate
HaHa421
changed the title
Decoding issue with emojis using the web backend
Decoding issue with emojis using the web platform
Jul 7, 2024
Problem
I am using the latest version of Dioxus and I have encountered an issue when using emojis in the text. When an emoji is present in the text, I get the following error:
This only occurs when the text contains emojis. If I remove the emojis from the text, everything works normally.
Steps To Reproduce
this occurs when I use ul { "😃" } but I suppose it will happen for any element with any emoji
Steps to reproduce the behavior:
Expected behavior
emojis are displayed without error
Environment:
nightly
web
The text was updated successfully, but these errors were encountered: