title: Victory charts doesnt update when data changes in React
body: <p>I'm using victory chart to display data from api. When i search a date through search date component , I noticed when the data changed, the chart didnt re-rendering.
  Here is the code:</p>
  <pre><code> return (
  &lt;&gt;
    &lt;Container className=&quot;global-container&quot;&gt;        
      &lt;SearchDate sendData={(d)=&gt;{
        setArr(d);
      }} /&gt;
      &lt;Card automatedTestId=&quot;global-data-container&quot;&gt;
          &lt;&gt;
            &lt;Word
              textStyle=&quot;title&quot;
              automatedTestId=&quot;global-pr-name&quot;
              variant=&quot;h1&quot;
              value=&quot;Pompe 1&quot;
            /&gt;
            &lt;StepShow dataNombre={arr} /&gt;
          &lt;/&gt; 
      &lt;/Card&gt;
    &lt;/Container&gt;
  &lt;/&gt;
  </code></pre>
  <p>);</p>
  <p>StepShow is my victory line custom component. I wrapped it with victoryChart tag like this:</p>
  <pre><code>&lt;VictoryChart&gt; &lt;VictoryLine data={props.dataTemps}/&gt; &lt;/VictoryChart&gt;
  </code></pre>
  <p>After  debugging, I can confirm that the data is changed as a result of an event, but these changes are not actually reflected in the chart. Any solutions please?</p>