I want to pass data between my axum middleware layers and my server functions (back and forth).
When "paying the price" of moving axum into the crate where the server functions are defined I can get at least the direction from middleware to server functions done by using extract on axum::Extension so there is some relationship between the two.
The docs of DioxusServerContext also state this: "A shared context for server functions that contains information about the request and middleware state.". Sadly it's totally unclear to me how to make this work for bidirectional communication between middleware and server functions.
Somewhat related: is there really no helper to initialize context providers and we have to the box monster?
A shared context for server functions that contains information about the request and middleware state.