From 2deed392d3bd81b5eff05c2177f9b85a69274992 Mon Sep 17 00:00:00 2001 From: Rainer Hahnekamp Date: Wed, 25 Sep 2024 19:59:22 +0200 Subject: [PATCH] Update modules/signals/rxjs-interop/src/rx-method.ts Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> --- modules/signals/rxjs-interop/src/rx-method.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/signals/rxjs-interop/src/rx-method.ts b/modules/signals/rxjs-interop/src/rx-method.ts index 637276efd7..574c9f5fb1 100644 --- a/modules/signals/rxjs-interop/src/rx-method.ts +++ b/modules/signals/rxjs-interop/src/rx-method.ts @@ -36,9 +36,7 @@ export function rxMethod( config?: { injector?: Injector } ) => { if (isSignal(input)) { - const callerInjector = getCallerInjectorIfAvailable(); - const customInjector = config?.injector; - const instanceInjector = customInjector ?? callerInjector ?? injector; + const instanceInjector = config?.injector ?? getCallerInjectorIfAvailable() ?? injector; const watcher = effect( () => {