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:
- The Playground is started with language A.
- The Playground loads the snippet for A.
- The user modifies the snippet code.
- The user switches the language to B.
- The Playground loads the snippet for B.
- The user switches the language back to A.
- The in-memory snippet for A preserves the earlier modification by the user.
Issue Priority
Priority: 3
Issue Component
Component: beam-playground