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

refactor: 사용처에서 path 보내주는 로직 수정 #32

Merged
merged 3 commits into from
Feb 25, 2024

Conversation

Hanna922
Copy link
Member

1️⃣ 어떤 작업을 했나요? (Summary)

작업 해놓고 push 하는 걸 까먹고 있었네요 ㅠㅡㅠ

기존 코드에 영향을 미치는 변경사항

사용처에서 매번 path를 넣어주지 않아도 되게끔 리팩토링 했습니다.
serviceName도 넣어주지 않게끔 변경하고 싶었는데, Context를 사용해야 할 것 같습니다.
그래서 살짝 보류 합니다..~!

3️⃣ 추후 작업

version 필드 추가

4️⃣ 체크리스트 (Checklist)

  • main 브랜치의 최신 코드를 pull 받았나요?

@Hanna922 Hanna922 self-assigned this Feb 23, 2024
@Hanna922 Hanna922 changed the title Refactor/#22 refactor: 사용처에서 path 보내주는 로직 수정 Feb 23, 2024
@@ -10,10 +10,16 @@ interface Props {
export const LogClick = ({ children, params }: Props) => {
const logger = useYLSLogger();
const child = Children.only(children);
let path = params.path;

if (!params.path) path = window.location.pathname;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이게 이전의 router.pathname을 대신하는거죠?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네네 사용처에서 매번 router.pathname을 해줘야 하는 걸 YLS에서 처리하도록 만들었어용

@Hanna922 Hanna922 merged commit 6fb5ebe into develop Feb 25, 2024
1 check passed
@Hanna922 Hanna922 deleted the refactor/#22 branch February 25, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 사용처에서 serviceName, path 보내주는 로직 리팩토링
2 participants