@daeryun/dr_components 1.2.86 → 1.2.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,15 +16,21 @@ import * as gtag from '../../lib/gtag';
16
16
  */
17
17
  export const useLoginUuidSync = () => {
18
18
  const hasProcessed = useRef(false);
19
+ console.log('useLoginUuidSync 훅 호출됨');
19
20
  useEffect(() => {
21
+ console.log('useLoginUuidSync useEffect 실행, hasProcessed:', hasProcessed.current);
20
22
  // 이미 처리했으면 스킵
21
- if (hasProcessed.current)
23
+ if (hasProcessed.current) {
24
+ console.log('useLoginUuidSync: 이미 처리됨, 스킵');
22
25
  return;
26
+ }
23
27
  const syncUuid = () => __awaiter(void 0, void 0, void 0, function* () {
24
28
  var _a, _b, _c;
29
+ console.log('useLoginUuidSync syncUuid 함수 시작');
25
30
  try {
26
31
  // URL에 이미 uuid가 있으면 스킵
27
32
  const urlParams = new URLSearchParams(window.location.search);
33
+ console.log('useLoginUuidSync 현재 URL:', window.location.href);
28
34
  if (urlParams.has('uuid')) {
29
35
  console.log('useLoginUuidSync: URL에 이미 uuid 있음');
30
36
  return;
@@ -9,14 +9,23 @@ import * as gtag from '../../lib/gtag';
9
9
  export const useLoginUuidSync = () => {
10
10
  const hasProcessed = useRef(false);
11
11
 
12
+ console.log('useLoginUuidSync 훅 호출됨');
13
+
12
14
  useEffect(() => {
15
+ console.log('useLoginUuidSync useEffect 실행, hasProcessed:', hasProcessed.current);
16
+
13
17
  // 이미 처리했으면 스킵
14
- if (hasProcessed.current) return;
18
+ if (hasProcessed.current) {
19
+ console.log('useLoginUuidSync: 이미 처리됨, 스킵');
20
+ return;
21
+ }
15
22
 
16
23
  const syncUuid = async () => {
24
+ console.log('useLoginUuidSync syncUuid 함수 시작');
17
25
  try {
18
26
  // URL에 이미 uuid가 있으면 스킵
19
27
  const urlParams = new URLSearchParams(window.location.search);
28
+ console.log('useLoginUuidSync 현재 URL:', window.location.href);
20
29
  if (urlParams.has('uuid')) {
21
30
  console.log('useLoginUuidSync: URL에 이미 uuid 있음');
22
31
  return;
@@ -81,3 +81,5 @@ export * from '../components/common/types/strength_new';
81
81
  export { default as PaginationForGroup } from './PaginationForGroup/PaginationForGroup';
82
82
  export { default as SuccessList } from './page/Success/SuccessList';
83
83
  export { default as GlobalOfficeSection } from './GlobalOfficeSection/GlobalOfficeSection';
84
+ // Hooks
85
+ export { useLoginUuidSync } from './hook/useLoginUuidSync';
@@ -81,3 +81,6 @@ export * from '../components/common/types/strength_new';
81
81
  export { default as PaginationForGroup } from './PaginationForGroup/PaginationForGroup';
82
82
  export { default as SuccessList } from './page/Success/SuccessList';
83
83
  export { default as GlobalOfficeSection } from './GlobalOfficeSection/GlobalOfficeSection';
84
+
85
+ // Hooks
86
+ export { useLoginUuidSync } from './hook/useLoginUuidSync';