Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: 특정 class 를 dynamic module 로 재사용하는 경우 의도하지 않은 동작을 합니다. #18

Closed
kys0213 opened this issue Apr 18, 2023 · 0 comments · Fixed by #19

Comments

@kys0213
Copy link

kys0213 commented Apr 18, 2023

Describe the bug

아래와 같이 재사용되는 service 가 있다고 가정할 때, 의존성 주입은 A service 지만 aop 데코레이터를 거치면서 b service 의 함수를 참조합니다.

class SomeService {
  constructor(private requester: Requester) {}
  
  @Cacheable()
  executr() {
    // SomeProvider 를 재사용하며, 서로다른 모듈에서 requester 를 별도로 주입해줌.
    this.requester.request()
  }
}

Expected behavior

기대하는 동작은 aop 데코레이터를 거치더라도 주입된 service 를 사용해야합니다.

To Reproduce

Possible Solution

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant