You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any realistic web app will have things like database connections, or calling other services on the server side. Due to Dioxus "hijacking" the main function and sharing it with browser and backend code, it's not easy to see how one would create database connection pools or RPC clients. Any documentation from axum or tokio is not very useful, with the way the main is setup in Dioxus.
Second problem is how to pass these DB pools or RPC clients to Dioxus server functions, so that they can be used to fetch data from external services. This should be possible via Axum's State mechanism, but since we're not dealing with Axum directly, this needs to be properly documented with good examples.
Right now the only somewhat related example is the auth example, but even that is not really documented at all.
The text was updated successfully, but these errors were encountered:
Any realistic web app will have things like database connections, or calling other services on the server side. Due to Dioxus "hijacking" the
main
function and sharing it with browser and backend code, it's not easy to see how one would create database connection pools or RPC clients. Any documentation fromaxum
ortokio
is not very useful, with the way themain
is setup in Dioxus.Second problem is how to pass these DB pools or RPC clients to Dioxus server functions, so that they can be used to fetch data from external services. This should be possible via Axum's State mechanism, but since we're not dealing with Axum directly, this needs to be properly documented with good examples.
Right now the only somewhat related example is the auth example, but even that is not really documented at all.
The text was updated successfully, but these errors were encountered: