@@ -47,7 +47,7 @@ function Display(
47
47
onFilter,
48
48
onLoadScene,
49
49
onChangeScene,
50
- onChangeProductLocation ,
50
+ onChangeSelectedProductLocation ,
51
51
onChangeProduct,
52
52
noCache,
53
53
language,
@@ -59,7 +59,7 @@ function Display(
59
59
const ctrl = controller || controllerRef
60
60
const onErrorStable = useLatest ( onError )
61
61
const onChangeSceneStable = useLatest ( onChangeScene )
62
- const onChangeProductLocationStable = useLatest ( onChangeProductLocation )
62
+ const onChangeSelectedProductLocationStable = useLatest ( onChangeSelectedProductLocation )
63
63
const onLoadSceneStable = useLatest ( onLoadScene )
64
64
const onChangeProductStable = useLatest ( onChangeProduct )
65
65
const onProductClickStable = useLatest ( onProductClick )
@@ -102,10 +102,10 @@ function Display(
102
102
const callbackOnLoadScene = registerEvent ( ctrl , EVENTS . LOAD_SCENE , onLoadSceneStable )
103
103
const callbackOnChangeScene = registerEvent ( ctrl , EVENTS . CHANGE_SCENE , onChangeSceneStable )
104
104
const callbackOnChangeProduct = registerEvent ( ctrl , EVENTS . CHANGE_PRODUCT , onChangeProductStable )
105
- const callbackOnChangeProductLocationStable = registerEvent (
105
+ const callbackOnChangeSelectedProductLocationStable = registerEvent (
106
106
ctrl ,
107
107
EVENTS . CHANGE_PRODUCT_LOCATION ,
108
- onChangeProductLocationStable ,
108
+ onChangeSelectedProductLocationStable ,
109
109
)
110
110
const callbackOnError = registerEvent ( ctrl , EVENTS . ERROR , onErrorStable )
111
111
const callbackOnProductClick = registerEvent ( ctrl , EVENTS . PRODUCT_CLICK , onProductClickStable )
@@ -114,7 +114,7 @@ function Display(
114
114
unRegisterEvent ( ctrl , EVENTS . LOAD_SCENE , callbackOnLoadScene )
115
115
unRegisterEvent ( ctrl , EVENTS . CHANGE_SCENE , callbackOnChangeScene )
116
116
unRegisterEvent ( ctrl , EVENTS . CHANGE_PRODUCT , callbackOnChangeProduct )
117
- unRegisterEvent ( ctrl , EVENTS . CHANGE_PRODUCT_LOCATION , callbackOnChangeProductLocationStable )
117
+ unRegisterEvent ( ctrl , EVENTS . CHANGE_PRODUCT_LOCATION , callbackOnChangeSelectedProductLocationStable )
118
118
unRegisterEvent ( ctrl , EVENTS . PRODUCT_CLICK , callbackOnProductClick )
119
119
unRegisterEvent ( ctrl , EVENTS . FILTER , callbackOnFilter )
120
120
unRegisterEvent ( ctrl , EVENTS . ERROR , callbackOnError )
@@ -137,7 +137,7 @@ function Display(
137
137
onErrorStable ,
138
138
onLoadSceneStable ,
139
139
onChangeSceneStable ,
140
- onChangeProductLocationStable ,
140
+ onChangeSelectedProductLocationStable ,
141
141
controller ,
142
142
onProductClickStable ,
143
143
onChangeProductStable ,
0 commit comments