Skip to content

Instantly share code, notes, and snippets.

View PatrickG's full-sized avatar

Patrick PatrickG

View GitHub Profile
@PatrickG
PatrickG / App.svelte
Created September 25, 2023 16:54 — forked from intrnl/App.svelte
Svelte 5 deep reactivity
<!-- this makes sure we're in runes-only mode -->
<!-- don't enable immutable! it won't work since we're mutating the object directly -->
<svelte:options runes />
<script>
import { store, increment } from './reactive.js';
const deep = store.deep;
function push() {