mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Prevent null as location in history
This commit is contained in:
@@ -7,7 +7,7 @@ const isServerSide = (typeof window === 'undefined');
|
||||
|
||||
const HistoryState = Record({
|
||||
// Current location
|
||||
location: null,
|
||||
location: new Location(),
|
||||
// Are we loading a new page
|
||||
loading: Boolean(false),
|
||||
// Did we fail loading a page?
|
||||
|
||||
Reference in New Issue
Block a user