fix reading signals outside of the vdom

This commit is contained in:
Evan Almloff 2023-08-26 14:53:39 -05:00
parent 38274da3ee
commit f3e7f042b4

View file

@ -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
}
}
}