Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lukasturcani/dioxus-future-issue


https://github.com/lukasturcani/dioxus-future-issue

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

This repo shows an issue with using futures with dioxus.
In the example there are two pages, in the first page the user
clicks a button which changes the page to the second page and
spawns a future. The future gets spawned but never completes.
It does not matter if the future is spawned by ``spawn`` or
``spawn_forever``.

If you flatten the ``First`` component - ie remove it and just
write its contents directly into ``App`` the issue goes away.

You can run the example with::

$ dx serve --hot-reload --port 8000