Make it easier to provide context to fullstack (#2515)

* pass context providers into server functions

* add an example for FromContext

* clean up DioxusRouterExt

* fix server function context

* fix fullstack desktop example

* fix axum auth example

* fix fullstack context type

* fix context providers path
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-06-18 20:38:06 -05:00
1 parent 7ee3dc41fc
commit b0caf442ab
12 files changed
+152 -64

No files matched your search

Generated
+1 -7
View File
@@ -203,12 +203,6 @@ version = "1.0.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519"
[[package]]
name = "anymap"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33954243bd79057c2de7338850b85983a44588021f8a5fee574a8888c6de4344"
[[package]]
name = "anymap2"
version = "0.13.0"
@@ -2130,6 +2124,7 @@ dependencies = [
name = "dioxus"
version = "0.5.2"
dependencies = [
"axum",
"criterion 0.3.6",
"dioxus",
"dioxus-config-macro",
@@ -2416,7 +2411,6 @@ dependencies = [
name = "dioxus-fullstack"
version = "0.5.2"
dependencies = [
"anymap",
"async-trait",
"axum",
"base64 0.21.7",