docs(v2): do not recommend using useBaseUrl() hook in most cases (#4126)

* doc: suggest not using useBaseUrl most of the time

* doc: suggest not using useBaseUrl most of the time
This commit is contained in:
Sébastien Lorber 2021-01-29 19:10:38 +01:00 committed by GitHub
parent 9c4bf4e138
commit 140bfbfd90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 23 deletions

View file

@ -195,9 +195,10 @@ export async function loadPlugins({
// TODO remove this deprecated lifecycle soon
// deprecated since alpha-60
// TODO, 1 user reported usage of this lifecycle! https://github.com/facebook/docusaurus/issues/3918
console.error(
chalk.red(
'plugin routesLoaded lifecycle is deprecated. If you think we should keep this lifecycle, please open a Github issue with your usecase',
'plugin routesLoaded lifecycle is deprecated. If you think we should keep this lifecycle, please report here: https://github.com/facebook/docusaurus/issues/3918',
),
);