We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820bd33 commit 3b53593Copy full SHA for 3b53593
src/index.tsx
@@ -147,14 +147,14 @@ const HolyLoader = ({
147
const originalPushState = history.pushState.bind(history);
148
history.pushState = (...args) => {
149
stopProgress();
150
- originalPushState.apply(history, args);
+ originalPushState(...args);
151
};
152
153
// This is crucial for Next.js Link components using the 'replace' prop.
154
const originalReplaceState = history.replaceState.bind(history);
155
history.replaceState = (...args) => {
156
157
- originalReplaceState.apply(history, args);
+ originalReplaceState(...args);
158
159
160
isHistoryPatched = true;
0 commit comments