fix: really big bug around hooks

This commit is contained in:
Jonathan Kelley committed 2021-11-29 11:10:40 -05:00
1 parent 36d89beb34
commit 52c7154897
22 files changed
+413 -342

No files matched your search

+5 -2
View File
@@ -22,7 +22,7 @@ web-sys = { version = "0.3", features = [
"Window",
], optional = true }
serde = "1"
serde = "1.0.130"
serde_urlencoded = "0.7"
@@ -30,13 +30,16 @@ wasm-bindgen = "0.2"
js-sys = "0.3"
gloo = "0.4"
route-recognizer = "0.3.1"
url = "2.2.2"
url_serde = "0.2.0"
[features]
default = ["web"]
default = ["web", "derive"]
web = ["web-sys"]
desktop = []
mobile = []
derive = []
[dev-dependencies]
console_error_panic_hook = "0.1.7"
+1 -1
View File
@@ -9,7 +9,7 @@ Using the router should feel similar to tide's routing framework where an "addre
Here's an example of how to use the router hook:
```rust
#[derive(Clone, Routable)]
#[derive(Clone, PartialEq, Serialize, Deserialize, Routable)]
enum AppRoute {
Home,
Posts,