From f379a455031a2f874125aeec65d9f4a8cbb07aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helmut=20H=C3=A4nsel?= Date: Wed, 27 Nov 2024 01:13:40 +0100 Subject: [PATCH] fix `@app` insertion in `@init` --- src/ReactiveTools.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReactiveTools.jl b/src/ReactiveTools.jl index cb36c34..752050f 100644 --- a/src/ReactiveTools.jl +++ b/src/ReactiveTools.jl @@ -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