title: How can I pass parameters to django api call via redux?
body: <p>How can I pass the <code>name, age, height</code> arguments to my redux action ?
  I am using django rest api as the backend</p>
  
  <pre><code>export const Search_Results = (name, age, height) =&gt; {
      return dispatch =&gt; {
          axios.get("http://127.0.0.1:8000/api/")
              .then(res =&gt; {
                  const info = res.data;
                  dispatch(presentResult(info))
              });
      }
  };
  </code></pre>
  
  <p>The presentResult is </p>
  
  <pre><code>export const presentResult = results =&gt; {
      return {
          type: actionTypes.PRESENT_RESULTS,
          results: results
      }
  };
  </code></pre>
  
  <p>My reducer is </p>
  
  <pre><code>const presentResult = (state, action) =&gt; {
      return updateObject(state, {
          results: action.results
      });
  };
  
  
  
  switch (action.type)
          case actionTypes.PRESENT_RESULTS:
              return presentResult(state, action);
  </code></pre>
  
  <p>The updateObject is simply this</p>
  
  <pre><code>export const updateObject = (oldObject, updatedProperties) =&gt; {
      return {
          ...oldObject, 
          ...updatedProperties
      }
  };
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>Basically <code>info</code> is all the data in the database, and the user searches by passing the parameters <code>name, age, height</code>. I am trying to filter the <code>info</code> data and to pass it only if it has any of the keywords in <code>name, age, height</code>. </p>