Comments (2)
as far as i understand it the offending code is the infinite loop in the timeout here in query.rs
recv: function () {
return new Promise((resolve, _reject) => {
// Ever 50 ms check for new data
let timeout = setTimeout(() => {
let __msg = null;
while (true) {
let __data = _message_queue.shift();
if (__data) {
__msg = __data;
break;
}
}
clearTimeout(timeout);
resolve(__msg);
}, 50);
});
},
the above timeout should likely be changed to an interval without the inner loop instead
from dioxus.
not directly related but it should probably be cleaned up when dropping UseEval
as well
from dioxus.
Related Issues (20)
- Incorrect values returned by MountedData::get_client_rect()
- Using multiple recv in js inside an eval on web ignores all promises but the last HOT 1
- Formatting in neovim HOT 1
- enhancement: Show number of crates left to compile in CLI output
- Change default location of WebView2 folder on Windows HOT 1
- Signal subscribers added during an update gets ignored
- UseEffect only runs on render HOT 2
- Disable the `async-std` feature for `rfd` in `dioxus-desktop`
- `dx serve` prints "Failed to parse file: No such file or directory" and starts rebuild sometime on static string change (Neovim) HOT 4
- Error `defs` found for struct `dioxus::dioxus_html::svg` HOT 1
- unable to run desktop app on ubuntu22.04 LTS HOT 2
- Desktop app window slowly moves down after restarts/rebuilds (GNOME) HOT 2
- Add installation instructions for WSL / Desktop HOT 2
- axum-desktop failing **Run a server function** on client
- Diffing bug HOT 2
- Mention other platforms in dx help
- dx build recompiles everything every time when using a cargo workspace HOT 1
- Gzip of all assets exposes server binary in release build HOT 2
- Crash when using ondragstart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dioxus.