Skip to content

Commit

Permalink
🧹 fix: load state animate
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Jan 1, 2024
1 parent 9afbfb7 commit a77f639
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions apps/medium/src/app/(user)/chat/[id]/clean-up.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,5 @@ export default function CleanUp({
}
}, [id])

useLayoutEffect(() => {
setTimeout(() => {
window.scrollTo({
top:
document.getElementsByClassName('page')[0]?.clientHeight ??
document.body.clientHeight,
behavior: 'smooth'
})
}, 400)
}, [])

return null
}

0 comments on commit a77f639

Please sign in to comment.