mirror of https://github.com/yewstack/yew
Use wasm-bindgen-futures' spawn_local (#1167)
* Use wasm-bindgen-futures' spawn_local * the fetch feature still needs web-sys Not implicit via future anymore
This commit is contained in:
parent
528ec66fbc
commit
6bf58ab7db
|
@ -15,7 +15,7 @@ all = ["stable", "experimental"]
|
|||
# Broad features
|
||||
## All features MUST be stable or experimental
|
||||
stable = ["neq", "pure", "history", "mrc_irc", "effect", "future"]
|
||||
experimental = ["dsl", "lrc", "with_callback", "fetch" ]
|
||||
experimental = ["dsl", "lrc", "with_callback", "fetch"]
|
||||
|
||||
# Some pointers are stable, some experimental.
|
||||
# This makes sure you get all the pointers
|
||||
|
@ -28,8 +28,8 @@ with_callback = []
|
|||
history = []
|
||||
dsl = []
|
||||
effect = []
|
||||
fetch = ["serde", "serde_json", "neq", "future"]
|
||||
future = ["wasm-bindgen-futures", "wasm-bindgen", "stdweb", "futures", "web-sys"]
|
||||
fetch = ["serde", "serde_json", "neq", "future", "web-sys"]
|
||||
future = ["wasm-bindgen-futures", "wasm-bindgen", "futures"]
|
||||
|
||||
# Ptr features
|
||||
lrc = []
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use std::future::Future;
|
||||
use stdweb::spawn_local;
|
||||
use wasm_bindgen_futures::spawn_local;
|
||||
use yew::{
|
||||
agent::{Agent, AgentLink},
|
||||
Component, ComponentLink,
|
||||
|
|
Loading…
Reference in New Issue