diff --git a/Cargo.lock b/Cargo.lock
index 3cfae99c9..f22270ec2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -493,7 +493,6 @@ dependencies = [
name = "contexts"
version = "0.1.0"
dependencies = [
- "serde",
"yew",
"yew-agent",
]
diff --git a/examples/contexts/Cargo.toml b/examples/contexts/Cargo.toml
index 65097ec6e..cd63a9b11 100644
--- a/examples/contexts/Cargo.toml
+++ b/examples/contexts/Cargo.toml
@@ -5,6 +5,5 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
-serde = { version = "1.0", features = ["derive"] }
yew = { path = "../../packages/yew", features = ["csr"] }
yew-agent = { path = "../../packages/yew-agent" }
diff --git a/examples/contexts/src/main.rs b/examples/contexts/src/main.rs
index d6531e49b..4512ee3aa 100644
--- a/examples/contexts/src/main.rs
+++ b/examples/contexts/src/main.rs
@@ -1,10 +1,12 @@
mod msg_ctx;
mod producer;
+mod struct_component_producer;
mod struct_component_subscriber;
mod subscriber;
use msg_ctx::MessageProvider;
use producer::Producer;
+use struct_component_producer::StructComponentProducer;
use struct_component_subscriber::StructComponentSubscriber;
use subscriber::Subscriber;
use yew::prelude::*;
@@ -14,6 +16,7 @@ pub fn App() -> Html {
html! {
+
diff --git a/examples/contexts/src/producer.rs b/examples/contexts/src/producer.rs
index 9eddc57a4..1a1aaadca 100644
--- a/examples/contexts/src/producer.rs
+++ b/examples/contexts/src/producer.rs
@@ -6,10 +6,8 @@ use super::msg_ctx::MessageContext;
pub fn Producer() -> Html {
let msg_ctx = use_context::().unwrap();
- let onclick = Callback::from(move |_| msg_ctx.dispatch("Message Received.".to_string()));
-
html! {
-