Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit b3cb5ee

Browse files
authored
Merge pull request #4113 from gibkigonzo/bugfix/add-server-context-toAsyncDataLoader
add server context to async data loader
2 parents f4e4664 + 9d9a316 commit b3cb5ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## Added
1111
- Add lazy create cart token - @gibkigonzo (#3994)
12+
- Add server context to async data loader - @gibkigonzo (pr#4113)
1213

1314
### Fixed
1415
- Fix low-quality images styles - @przspa (#3906)

core/server-entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function _ssrHydrateSubcomponents (components, store, router, resolve, reject, a
3131
return Promise.resolve(null)
3232
}
3333
})).then(() => {
34-
AsyncDataLoader.flush({ store, route: router.currentRoute, context: null } /* AsyncDataLoaderActionContext */).then((r) => {
34+
AsyncDataLoader.flush({ store, route: router.currentRoute, context } /* AsyncDataLoaderActionContext */).then((r) => {
3535
if (buildTimeConfig.ssr.useInitialStateFilter) {
3636
context.state = omit(store.state, config.ssr.initialStateFilter)
3737
} else {

0 commit comments

Comments
 (0)