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

Reactive Ui Patterns

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

Shows remote-function reactive UI patterns using the .current property for smooth in-place updates without page jumps.

About

Documents Svelte remote-function patterns that store queries in variables and use .current for in-place updates that preserve scroll position. A developer uses it to avoid jarring reloads when refreshing data.

  • Store queries in a variable to access the .current property
  • Show a spinner only on initial load when .current is undefined

Reactive Ui 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 reactive-ui-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 remote-function reactive UI patterns using the .current property for smooth in-place updates without page jumps.

Files

SKILL.mdMarkdownGitHub ↗

Reactive UI Patterns

Quick Start

<script lang="ts">
	const data_query = get_data(); // Store in variable for .current access

	async function save(id: string, value: string) {
		await update_data({ id, value });
		await data_query.refresh(); // Updates in place!
	}
</script>

{#if data_query.error}
	<p>Error loading data</p>
{:else if data_query.loading && data_query.current === undefined}
	<p>Loading...</p>
{:else}
	{@const items = data_query.current ?? []}
	<div class:opacity-60={data_query.loading}>
		{#each items as item}<!-- Content updates smoothly -->{/each}
	</div>
{/if}

Core Principles

  • Store queries: const query = get_data() enables .current

property access

  • Use `.current`: Prevents page jumps, keeps scroll position

during updates

  • Initial load only: Show spinner when .current === undefined,

not on every refresh

  • Avoid `{#await}`: Causes jarring page reloads - use stored query

pattern instead

Reference Files

  • current-property.md - Deep dive on

.current property

  • anti-patterns.md - Common mistakes to

avoid

  • examples.md - Real-world implementation

examples

Related skills

This week in AI coding

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

unsubscribe anytime.