DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.27k stars 733 forks source link

Poll tasks in the same order they are queued #2273

Closed ealmloff closed 2 months ago

ealmloff commented 2 months ago

This changes the task queue for each scope from a Vec to a VecDeque to preserve the order we poll tasks in a single scope. This fixes effect ordering which uses futures internally

Fixes https://github.com/DioxusLabs/dioxus/issues/2262