Skip to content

[Task]: Playground state preservation on SDK switch #22430

@alexeyinkin

Description

@alexeyinkin

What needs to happen?

Currently Playground maintains a single state of a document. When SDK changes, the code in the editor is lost, and the default example for the given SDK is loaded.

Need to maintain a separate state for each SDK so that:

  1. The Playground is started with language A.
  2. The Playground loads the snippet for A.
  3. The user modifies the snippet code.
  4. The user switches the language to B.
  5. The Playground loads the snippet for B.
  6. The user switches the language back to A.
  7. The in-memory snippet for A preserves the earlier modification by the user.

Issue Priority

Priority: 3

Issue Component

Component: beam-playground

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions