Skip to content

Bug: Playground crashes when switching between light and dark mode #6335

Closed
@lostfictions

Description

@lostfictions

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Relevant Package

website

Playground Link

https://typescript-eslint.io/play#ts=4.9.3&sourceType=module&code=C4TwDgpgBAglC8UDeUC+BYAUFgJhAxgDYCGATtAG5lQAeAXFEA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA

Repro Code

Visit provided playground link to see the issue.

ESLint Config

N/A (see playground link)

tsconfig

N/A (see playground link)

Expected Result

The playground should not crash when switching from light to dark mode, or vice-versa. Playground state should be preserved when switching.

Actual Result

The playground state may disappear and reappear after around 5 seconds of waiting. Then the page crashes.

Additional Info

Here's a video showing the issue:

simplescreenrecorder-2023-01-13_14.33.58.mp4

Note that in this video I don't paste in any code -- the page loads up blank, then when I hit the dark mode button, after several seconds the code appears. Then it crashes.

The video shows the page crashing after I refresh it following a previous crash, but this also occurs for me in a fresh incognito session, ie. without any service workers, cookies, localstorage or other persistent state set.

Versions

  • Firefox 108
  • Chrome 108

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: websiteIssues related to the @typescript-eslint websitewebsite: playground

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions