DioxusLabs / dioxus

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

use_server_future does not caching server function calls correctly #2264

Open ealmloff opened 2 months ago

ealmloff commented 2 months ago

Problem

https://github.com/DioxusLabs/dioxus/pull/2236 polls the use_server_future again on the client which causes server functions called directly in the future to be fetched again.

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

The server function return should be cached on the server and sent to the client serialized into the HTML

Screenshots

Screenshot 2024-04-06 at 12 02 24 PM

Environment:

Questionnaire