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> </Switch>
</Container> </Container>
<Switch> <Switch>
<Route path="/manga/:mangaId/chapter/:chapterIndex"> <Route
<Reader /> path="/manga/:mangaId/chapter/:chapterIndex"
</Route> // passing a key re-mounts the reader when changing chapters
render={(props:any) => <Reader key={props.match.params.chapterIndex} />}
/>
</Switch> </Switch>
</NavbarContext.Provider> </NavbarContext.Provider>
</ThemeProvider> </ThemeProvider>