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
Copy file name to clipboardExpand all lines: website/docs/migration-guides/yew-agent/from-0_1_0-to-0_2_0.mdx
+13
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,21 @@
2
2
title: "From 0.1.0 to 0.2.0"
3
3
---
4
4
5
+
## Removal of `Context` and `Job` Agents
6
+
5
7
The `Context` and `Job` Agents have been removed in favour of Yew's Context API.
6
8
7
9
You can see the updated [`pub_sub`](https://github.com/yewstack/yew/tree/master/examples/pub_sub) example about how to use Context API.
8
10
9
11
For users of `yew_agent::utils::store`, you may switch to third party solutions like: [Yewdux](https://github.com/intendednull/yewdux) or [Bounce](https://github.com/futursolo/bounce).
12
+
13
+
## `Threaded` is separated into `PublicAgent` and `PrivateAgent`
14
+
15
+
Replace `use yew_agent::Threaded;` with `use yew_agent::PublicAgent;`.
16
+
17
+
:::note
18
+
19
+
`Threaded` was never implemented for Private Agents.
20
+
All existing web worker-based agents are Public Agents.
0 commit comments