Storing store in `useRef` does not work with nested Suspenses. Consider moving values in global window object.