SparkPost / SparkPost/developers.sparkpost.com
Data loss when switching among template editor tabs
Open
Nobody has claimed this yet.
- Dominant language
- API Blueprint
- Stars
- 18
- Forks
- 9
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 3
Description
Scenario:
- Debug a template, run into an error
- Delete the offending code block.
- Encounter a different, earlier, error (which is odd but another issue - #377), about substitution values
- Go to the Test Data tab to check the substitution values
- Come back to the HTML tab
- Try to Undo the deletion of the code block from step 2.
Result: no undo. The code block is lost.
I expect a template editor with syntax highlight to behave like a code editor, and offer basic undo.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the scenario in the template editor: delete a code block, switch to the Test Data tab, return to the HTML tab, and try Undo. Trace how each tab preserves editor state and undo history. Done means the deletion can be undone after switching tabs, without losing the existing tab behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100