You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//here we are adding useSelector and useDispatch for RTK state conversion
33
+
constdispatch=useDispatch();
34
+
30
35
// We destructure the 'props' that were passed into this component
31
36
const{
32
37
selected,// boolean on whether the current index is the same as the viewIndex in 'ActionContainer'
33
38
last,// boolean on (whether the view index is less than 0) AND if (the index is the same as the last snapshot's index value in hierarchyArr) in 'ActionContainer'
34
39
index,// from snapshot.index in "ActionContainer's" 'hierarchyArr'
35
40
sliderIndex,// from tabs[currentTab] object in 'ActionContainer'
36
-
dispatch,
41
+
//commented out dispatch that was prop drilled as conversion to RTX might invalidate need for prop drilling to access dispatch
42
+
// dispatch,
37
43
displayName,// from snapshot.displayName in "ActionContainer's" 'hierarchyArr'
38
44
componentData,// from snapshot.componentData in "ActionContainer's" 'hierarchyArr'
39
45
viewIndex,// from tabs[currentTab] object in 'ActionContainer'
0 commit comments