This commit is contained in:
Aria Moradi 2021-05-25 13:12:17 +04:30
parent 23466cf853
commit deb2ab1ff4

View File

@ -122,9 +122,11 @@ export default function App() {
</Switch>
</Container>
<Switch>
<Route path="/manga/:mangaId/chapter/:chapterIndex">
<Reader />
</Route>
<Route
path="/manga/:mangaId/chapter/:chapterIndex"
// passing a key re-mounts the reader when changing chapters
render={(props:any) => <Reader key={props.match.params.chapterIndex} />}
/>
</Switch>
</NavbarContext.Provider>
</ThemeProvider>