@inertiajs/core 2.3.6 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/types/types.d.ts +6 -4
package/dist/index.js
CHANGED
|
@@ -1173,6 +1173,10 @@ var History = class {
|
|
|
1173
1173
|
return window.history.state?.documentScrollPosition || { top: 0, left: 0 };
|
|
1174
1174
|
}
|
|
1175
1175
|
replaceState(page2, cb = null) {
|
|
1176
|
+
if ((0, import_lodash_es3.isEqual)(this.current, page2)) {
|
|
1177
|
+
cb && cb();
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1176
1180
|
page.merge(page2);
|
|
1177
1181
|
if (isServer) {
|
|
1178
1182
|
return;
|