Skip to content

Commit

Permalink
πŸ› λΆˆν•„μš”ν•œ console.log 및 useEffect λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
RookieAND committed Feb 22, 2024
1 parent ca6b31a commit 5c140ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/utils/tmap/TmapModuleProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MutableRefObject, PropsWithChildren } from 'react';
import { createContext, useLayoutEffect, useRef } from 'react';
import { createContext, useEffect, useRef } from 'react';

import { useInRouterContext } from 'react-router-dom';

Expand Down Expand Up @@ -32,9 +32,7 @@ export const TmapProvider = ({
const tmapModuleRef = useRef<TMapModule | null>(null);
const isClientRendered = useInRouterContext();

console.log(tmapModuleRef.current, 'tmapModuleRef');

useLayoutEffect(() => {
useEffect(() => {
if (!mapContainerRef.current) return;
mapContainerRef.current.id = mapId;

Expand Down

0 comments on commit 5c140ff

Please sign in to comment.