Skip to content

Commit

Permalink
fix merge_storage() part II
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Mar 3, 2024
1 parent 1e4f9f8 commit abf381a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stipple/reactivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ macro var_storage(expr, new_inputmode = :auto)
end

mixin_storage = @eval __module__ Stipple.model_to_storage($(e.args[2]), $prefix, $postfix)
storage = merge_storage(storage, mixin_storage)
storage = merge_storage(storage, mixin_storage; context = __module__)
end
:modes__, e
end
Expand Down Expand Up @@ -482,7 +482,7 @@ macro add_vars(modelname, expr, new_inputmode = :auto)
storage = @eval(__module__, Stipple.@var_storage($expr, $new_inputmode))
new_storage = if isdefined(__module__, modelname)
old_storage = @eval(__module__, Stipple.model_to_storage($modelname))
ReactiveTools.merge_storage(old_storage, storage)
ReactiveTools.merge_storage(old_storage, storage; context = __module__)
else
storage
end
Expand Down

0 comments on commit abf381a

Please sign in to comment.