Skip to content

[Bug]: Issue with Sandpacks #6662

@bondz

Description

@bondz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions