Add data persistence and advanced state operations to your Kanban board. Learn to save state to localStorage with $effect, implement task deletion with confirmation, handle async operations, and add robust form validation—building apps that gracefully handle errors and edge cases.
Overview
Syllabus
- Unit 1: Refactoring the Task Store for Scalability in Svelte
- Adding Timestamps to Task Objects
- Adding Timestamps to New Tasks
- Tracking Task Updates with Timestamps
- Implementing Task Deletion and Derived States
- Unit 2: Adding Task Deletion with Confirmation Dialog in Svelte
- Creating a Basic Delete Button
- Adding Confirmation to Delete Button
- Styling the Delete Button Interface
- Integrating DeleteButton into TaskCard Component
- Unit 3: Persisting Kanban Tasks with localStorage in Svelte
- Setting Up Task Persistence with localStorage
- Loading Tasks with Reactive Effects
- Saving Tasks with Reactive Effects
- Unit 4: Adding User Notifications to Your Svelte Kanban Board
- Tracking Latest Tasks for Notifications
- Building a Reusable Notification Component
- Creating a Task Notification Manager
- Integrating Notifications into Main Application
- Unit 5: Form Validation and Error Handling in Svelte
- Setting Up Form Validation State
- Implementing Form Validation Logic
- Implementing Form Submission with Error Handling
- Enhancing Forms with Visual Feedback
- Creating a Global Error Page