Skip to content

Commit

Permalink
fix @app insertion in @init
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Nov 27, 2024
1 parent f7b0272 commit f379a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactiveTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ macro init(args...)
output = quote
$initfn($(init_args...)) |> $handlersfn
end
isdefined(__module__, typename) || pushfirst!(output.args, :(@eval $__module__ @app))
called_without_type && !isdefined(__module__, typename) && pushfirst!(output.args, :(@eval $__module__ @app))

output |> esc
end
Expand Down

0 comments on commit f379a45

Please sign in to comment.