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( () => {