Persistence
12 min read
Test the Persistence Flow
Test the Persistence Flow
Before moving on, test the complete persistence cycle rather than checking only one action.
Use this sequence:
- create a new task
- move it to another column
- delete one of the original sample tasks
- refresh the page
- confirm the board still matches the state from before the refresh
Then open Local Storage and confirm the kanbanTasks entry is still present.
If the board resets, check the order of your startup code. The saved data must be loaded before renderTasks() runs.
If one type of change disappears after refresh, check that saveTasks() is called in that specific action’s state-change path.
Checkpoint
All three task actions—create, delete, and move—should survive a page refresh.
The board is now a small persistent browser application rather than a page that only holds temporary state.