diff --git a/CHANGELOG.md b/CHANGELOG.md index 65b3477b01..e68f0ad4c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Set `totals` in products in cart always in reactive way - @psmyrek (#4079) - Fix sync cart between tabs - @Michal-Dziedzinski (#3838) - Add currentRoute to url module and return cached requests - @gibkigonzo (pr#4077, issue#4066) +- Disable overriding `route` state in __INITIAL_STATE__ - @gibkigonzo (pr#4095) - Fix gtm order placement event when user was guest - @Michal-Dziedzinski (#4064) ## [1.11.1] - 2020.02.05 diff --git a/core/client-entry.ts b/core/client-entry.ts index 10ca462da2..4296766fa2 100755 --- a/core/client-entry.ts +++ b/core/client-entry.ts @@ -25,7 +25,7 @@ const invokeClientEntry = async () => { if (window.__INITIAL_STATE__) { // skip fields that were set by createApp const initialState = coreHooksExecutors.beforeHydrated( - omit(window.__INITIAL_STATE__, ['storeView', 'config', 'version']) + omit(window.__INITIAL_STATE__, ['storeView', 'config', 'version', 'route']) ) store.replaceState(Object.assign({}, store.state, initialState, { config: globalConfig })) }