mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix reading signals outside of the vdom
This commit is contained in:
parent
38274da3ee
commit
f3e7f042b4
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ pub(crate) fn get_effect_stack() -> EffectStack {
|
|||
Some(rt) => rt,
|
||||
None => {
|
||||
let store = EffectStack::default();
|
||||
provide_root_context(store).expect("in a virtual dom")
|
||||
provide_root_context(store.clone());
|
||||
store
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue