title: How to pass Redux Reducer pointer to React Context?
body: <p>So in short I am trying to pass a reducer to a context file and have it so that if the state of reducer is updated then I can view that new state in the context file.</p>
  <p>Here is my reducer:</p>
  <pre><code>function StillUploadReducer(state = true, action){
  switch (action.type){
    case 'stillUpload':
      return action.payloadData
  
    default:
      return state
    }
  }
  </code></pre>
  <p>Heres how im passing it to a firebase context file:</p>
  <pre><code>const addData = await firebase.addExercise(
        Data,
        props.StillUploadReducer
      );
  </code></pre>
  <p>In the context file i do a console.log of the value and i get the original value passed in. The main issue with this is I want the ability for the user to change the state of the reducer while I await on a video being uploaded so that if the state has changed then it is reflected in the context file.
  The user changes the reducer using the action:</p>
  <pre><code>const StillUpload = (dataToPass) =&gt; {
    return{
      type: 'stillUpload',
      payloadData: dataToPass,
    }
   }
  </code></pre>
  <p>I have console logged the value of the reducer outside the context file and i can see it is being updated I just dont know how to see that change reflected in the context file. Does anyone have any ideas? Thx ahead of time.</p>