sourcegraph/client/web/dev
Valery Bugakov 77541f2c30
web: upgrade react-router to v6 (#47595)
- Closes #33834
- Upgraded react-router to v6
- Migrated the web application to [the data-aware router introduced in
v6.4.0](https://reactrouter.com/en/main/routers/picking-a-router#using-v64-data-apis).
- Migrated `history.block` usages to the `unstable_useBlock` hook
[introduced in
v6.7.0](https://github.com/remix-run/react-router/issues/8139).
- Removed explicit history reference from the `renderWithBrandedContext`
utility used in unit tests.
- Migrated the search-query state observer from `history.listen` to
`useLocation` API.

## Test plan

CI and manually visiting all the pages.
2023-02-21 06:32:51 +00:00
..
esbuild upgrade esbuild and use tree shaking (#47520) 2023-02-13 06:45:47 +00:00
mocks web: migrate from yarn to pnpm (#46143) 2023-01-11 19:50:09 -08:00
server dx: inject remote js-context into local index.html (#47413) 2023-02-06 19:13:09 -08:00
utils web: upgrade react-router to v6 (#47595) 2023-02-21 06:32:51 +00:00
tsconfig.json web: add web-app server for development and production builds (#20126) 2021-05-07 19:01:10 +08:00