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

Commit b83b94d

Browse files
authored
Merge pull request #6011 from vuestorefront/#5997/productPageVisited-hook-param-type
fix: set correct type for productPageVisited hook param
2 parents ba9a23c + 7ae4c34 commit b83b94d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5555
- Awaiting addItem action call inside mergeServerItem action (#5165)
5656
- Moved `phoneNum` to proper branch - @lukaszjedrasik ([#5730](https://github.com/vuestorefront/vue-storefront/issues/5730))
5757
- Development hot-reload speed webpack config - ([#5559](https://github.com/vuestorefront/vue-storefront/issues/5559))
58+
- Set correct type for `productPageVisited` hook - @lukaszjedrasik ([#5997](https://github.com/vuestorefront/vue-storefront/issues/5997))
59+
5860
## [1.12.2] - 2020.07.28
5961

6062
### Added

core/modules/catalog-next/hooks.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { createListenerHook, createMutatorHook } from '@vue-storefront/core/lib/hooks'
1+
import { createListenerHook } from '@vue-storefront/core/lib/hooks'
22
import { Category } from './types/Category';
3+
import Product from 'core/modules/catalog/types/Product';
34

45
const {
56
hook: categoryPageVisitedHook,
@@ -9,7 +10,7 @@ const {
910
const {
1011
hook: productPageVisitedHook,
1112
executor: productPageVisitedExecutor
12-
} = createListenerHook<Category>()
13+
} = createListenerHook<Product>()
1314

1415
/** Only for internal usage */
1516
const catalogHooksExecutors = {

0 commit comments

Comments
 (0)