Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
spences10 avatar

Error Handling Patterns

  • 2 installs
  • 6 repo stars
  • Updated August 3, 2026
  • spences10/devhub-crm

Shows Svelte 5 error handling with error boundaries, await expressions, loading states, and remote-function form errors.

About

Documents Svelte 5 error-handling patterns using svelte:boundary with pending and failed snippets for loading and retry. A developer uses it when adding error boundaries and form-error handling in a Svelte app.

  • Uses svelte:boundary with pending and failed snippets plus a reset retry
  • Reads remote function .error property for form errors

Error Handling Patterns by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,862 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/devhub-crm --skill error-handling-patterns

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars6
Last updatedAugust 3, 2026
Repositoryspences10/devhub-crm

What it does

Shows Svelte 5 error handling with error boundaries, await expressions, loading states, and remote-function form errors.

Files

SKILL.mdMarkdownGitHub ↗

Error Handling Patterns

Quick Start

<svelte:boundary>
	<ul>
		{#each await get_contacts() as contact}
			<li>{contact.name}</li>
		{/each}
	</ul>

	{#snippet pending()}
		<div class="loading">Loading...</div>
	{/snippet}

	{#snippet failed(error, reset)}
		<div class="error">
			<p>Error: {error.message}</p>
			<button onclick={reset}>Retry</button>
		</div>
	{/snippet}
</svelte:boundary>

Core Principles

  • Error boundaries: Use <svelte:boundary> to catch component

errors

  • Pending snippet: Show loading state while awaiting data
  • Failed snippet: Display errors with retry via reset function
  • Await expressions: Use {#each await query()} directly in

markup

  • Granular boundaries: Wrap individual features, not entire pages
  • Form errors: Check remote function .error property (e.g.,

create_contact.error)

Reference Files

  • error-handling-guide.md -

Complete patterns and examples

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.