Skip to content

Commit

Permalink
fix: log
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmorizon committed Dec 25, 2024
1 parent 55b03c2 commit 27566a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/shared/src/utils/debug/debugUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ export function useDebugComponentRemountLog({

useEffect(() => {
if (process.env.NODE_ENV !== 'production') {
console.log(
console.groupCollapsed(
`@@ComponentRemountLog mounted: ${nameRef.current}`,
stringUtils.safeStringify(payloadRef.current),
);
console.log(stringUtils.safeStringify(payloadRef.current));
console.log('href: ', globalThis?.location?.href);
console.groupEnd();
}
return () => {
if (process.env.NODE_ENV !== 'production') {
Expand Down

0 comments on commit 27566a0

Please sign in to comment.