title: Object values are lost after useState
body: <p>I have an object with time intervals fot every day of week.</p>
  <pre><code>{
  mon: [['2022-05-02T22:30:00.100Z', '2022-05-03T02:00:00.309Z'], ...],
  tues: [[]],
  ...
  }
  </code></pre>
  <p>So when I'm trying to use useState</p>
  <pre><code>const defaultIntervals = getDaysAndIntervals({ metaData })
  const [daysAndIntervals, setDaysAndIntervals] = useState(defaultIntervals)
  </code></pre>
  <p>the defaultIntervals is correct, but daysAndIntervals converting to</p>
  <pre><code>{
  mon: [],
  tues: []
  }
  </code></pre>
  <p>The values of every key in this object is empty array. Could please tell me why?</p>