Replies: 3 comments
-
|
params를 deps에서 제거해서 무조건 한번만 찍히고, 비동기는 콜백으로 처리하는 방식 좋은 것 같습니다 😄 지금 params를 얕게 체크하고 있어서 발생할 수 있는 오작동도 함께 방지돼서 좋네요 ㅎㅎ |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
useAnalyticsPageView에 함수도 넘길 수 있도록하는 방식 좋습니다! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
resolved via #180 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
첫 논의 스레드: https://www.notion.so/RAP-98df273e1c8b49d9be89107423a9425d#db3e8d475fc24d29a369b6e723a37e61
e.g.
위 상황에서 referrer나 userNo가 바뀌면 PageView가 또 찍힙니다.
[대안]
params를 useEffect depths에서 제거
문제: useQueryParam등 꼭 필요한 인자가 비동기로 늦게 들어오면? (e.g. referrer: '' -> referrer: 'facebook')
useAnalyticsPageView에 함수도 넘길 수 있도록 해주면 어떠려나요
의견 부탁스
Beta Was this translation helpful? Give feedback.
All reactions