Fix effect stack issue

This commit is contained in:
Jonathan Kelley committed 2024-01-15 20:45:59 -08:00
1 parent a32ae8b112
commit bb750f5336
6 files changed
+38 -31

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ impl EffectStack {
}
pub(crate) fn get_effect_stack() -> EffectStack {
match consume_context() {
match try_consume_context() {
Some(rt) => rt,
None => {
let store = EffectStack::default();
+1 -1
View File
@@ -12,7 +12,7 @@ use generational_box::{
use crate::Effect;
fn current_store() -> Store {
match consume_context() {
match try_consume_context::<Store>() {
Some(rt) => rt,
None => {
let store = Store::default();