title: Memory concerns pulling the same large dataset from a mono store across different components in React
body: <p>I'm using <a href="https://github.com/pmndrs/zustand/" rel="nofollow noreferrer">Zustand</a> for state management in my React app but I think this might be a more general React question.</p>
  <p>Zustand is a simple flux-like store where components subscribe to a store hook to retrieve values / methods from it. In my app, the store includes some very large datasets and I retrieve those store properties in several different components with something like:</p>
  <p><code>const dataset = useStore(state =&gt; state.largeDataset)</code></p>
  <p>My question is whether the <code>dataset</code> variable references or copies the value from the store? If it copies, then that means that each additional component that retrieves the value will take up an additional [size_of_dataset] amount of space?</p>