Closed frankcollins3 closed 1 year ago
option 1 works I prop drilled this one usage of state to use it exactly as she did just to respect time. All the other state have been successfully re-implemented in the way she used it but with Redux and Graphql.. not mongo [7:26pm]
/Home.tsx -> useEffect() -> SET_STATUS({payload: Array(HYDRO_SCHEDULE.length).fill(false)})
/reduxreducer: STATUS: action.payload
π to change the status I need to access the index of the STATUS state.
/Reminder
{handleClick()}
->first proposed approach: 0: switch to JQ and arrange the elements so that there can be viable .sibling() targeting between these elems
1: revert back to the way jenny had this done in the app.
2: split redux functionality for this into 2 actions: [SET_STATUS_LENGTH, SET_STATUS_INDEX]