feat: 페이지 이동 시 스크롤 상단 이동 시 스크롤 위치 복구#57
Draft
y00eunji wants to merge 2 commits into
Draft
Conversation
BrowserRouter에서 createBrowserRouter로 마이그레이션하여 React Router 공식 ScrollRestoration 컴포넌트를 적용
5149be3 to
cc201eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 배경
페이지 이동 시 스크롤이 이전 위치에 머물러 있는 문제가 있었습니다.
변경 내용
React Router 공식
<ScrollRestoration>컴포넌트를 적용하기 위해BrowserRouter에서createBrowserRouter로 라우터 방식을 마이그레이션했습니다.동작 방식