mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 00:47:03 +02:00
feat: avoid flash Of Loading component
This commit is contained in:
parent
6b11281247
commit
5eab627340
1 changed files with 4 additions and 1 deletions
|
@ -11,5 +11,8 @@ export default props => {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
return <div align="center">Loading...</div>;
|
||||
if (props.pastDelay) {
|
||||
return <div align="center">Loading...</div>;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue