Skip to content

Commit

Permalink
Update modules/signals/rxjs-interop/src/rx-method.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Deschryver <[email protected]>
  • Loading branch information
rainerhahnekamp and timdeschryver authored Sep 25, 2024
1 parent 600d575 commit 2deed39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/signals/rxjs-interop/src/rx-method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export function rxMethod<Input>(
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(
() => {
Expand Down

0 comments on commit 2deed39

Please sign in to comment.