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
const[selectedSpeed,setSpeed]=useState(speeds[1]);// create a new local state selectedSpeed and set it to the second element of the 'speeds' array (1.0x speed)
63
-
const[{ tabs, currentTab },dispatch]=useStoreContext();// we destructure the returned context object from the invocation of the useStoreContext function. Properties not found on the initialState object (dispatch) are from the useReducer function invocation in the App component
64
-
const{ sliderIndex, playing }=tabs[currentTab];// we destructure the currentTab object
66
+
67
+
// const [{ tabs, currentTab }, dispatch] = useStoreContext(); // we destructure the returned context object from the invocation of the useStoreContext function. Properties not found on the initialState object (dispatch) are from the useReducer function invocation in the App component
68
+
// const { sliderIndex, playing } = tabs[currentTab]; // we destructure the currentTab object
0 commit comments