Skip to content

Commit

Permalink
Set maximum loading time to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Jun 8, 2023
1 parent 5447fd9 commit e6cd944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/layout/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { store as coreStore } from '@wordpress/core-data';
*/
import useEditedEntityRecord from '../use-edited-entity-record';

const MAX_LOADING_TIME = 30000; // 30 seconds
const MAX_LOADING_TIME = 10000; // 10 seconds

export function useIsSiteEditorLoading() {
const { isLoaded: hasLoadedPost } = useEditedEntityRecord();
Expand Down

0 comments on commit e6cd944

Please sign in to comment.