Description
Summary
Sandpack preview no longer reloads after scroll.
Pick any page with a sandpack.... On scroll to the sandpack, the preview loads correctly, scroll away from the sandpack and then back, the sandpack's preview doesn't show up anymore.
Page
https://react.dev/learn/describing-the-ui
All pages with sandpacks are also affected
Details
Screen.Recording.2024-02-26.at.10.31.42.AM.mov
Shown above. The preview loads correctly the first time but if the user navigates away from the sandpack and then later back to it, it fails to load.
Tried to fix it locally and the last working version of sandpack is 2.6.1
. Tested in Safari and Edge
I think this is related to #6659 cc @danilowoz @rickhanlonii