Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukasturcani/dioxus-future-issue
https://github.com/lukasturcani/dioxus-future-issue
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lukasturcani/dioxus-future-issue
- Owner: lukasturcani
- Created: 2023-12-11T11:44:54.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-11T12:00:49.000Z (about 1 year ago)
- Last Synced: 2024-10-12T11:43:49.412Z (2 months ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
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