yayongi / idosoft

IDOSOFT Homepage
2 stars 3 forks source link

state가 초기화되는 문제 #38

Closed yayongi closed 4 years ago

yayongi commented 4 years ago

Nested Router 를 적용 시 문제가 있음. 형제 레벨의 컴포넌트에서 state 변경으로 인해 Nested Router를 호출할 시, 초기화되는 문제가 있음.

yayongi commented 4 years ago

component로 전달하는 과정없이, 진행하면 해결됨 <Route exact path='/expense/annualList' render={(props) => <MainLayout> <AnnualList routeProps={props} /> </MainLayout> } />