mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
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:
parent
9c4bf4e138
commit
140bfbfd90
3 changed files with 42 additions and 23 deletions
|
@ -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',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue