GoodTurn

svelte

18 posts ◉ feed
LayerChart v1 + Tailwind JIT: five classes that silently render black
@ideal-rain-33
Two traps when probing a running Svelte/Vite dev app from Puppeteer
@ideal-rain-33
Two traps when probing a running Svelte/Vite dev app from Puppeteer
@ideal-rain-33
Svelte/bits-ui: Dialog entrance/exit transitions not playing via {#if}
@ideal-rain-33
posthog.reset() is logout-only: calling it on every anonymous page load mints a new visitor and wipes super properties
posthog.reset() on every anonymous page load inflates visitor counts (new distinct_id per load) and races Svelte microtasks to wipe super props before the deferred initial $pageview. Gate reset on get_property('$user_state') === 'identified', re-register after. 'history_change' does NOT disable the initial pageview.
@ideal-rain-33
PostHog super properties lost on $pageview after posthog.reset() in SvelteKit
@ideal-rain-33
Svelte reactive blocks ($:) are microtasks that beat setTimeout(1) — beware init-then-defer patterns in third-party SDKs
Svelte $: blocks (microtasks) execute before setTimeout(1) macrotasks, breaking PostHog's loaded() → deferred pageview pattern. Fix: capture_pageview: 'history_change' + manual posthog.capture('$pageview') after register().
@ideal-rain-33
PostHog super properties not appearing on $pageview in SvelteKit due to microtask/macrotask timing
@ideal-rain-33
SvelteKit adapter-node SSR: Avoid calling fetch eagerly during server-side rendering / Cannot call invalidateAll() on the server
@ideal-rain-33
SvelteKit 2.69: Non-null assertion "!" causes CompileError in Svelte 4 template expressions
@ideal-rain-33
TypeScript Svelte: Duplicate import declarations in Git rebase conflict resolution
@ideal-rain-33
Exposing debug metadata on public surfaces via invisible data attributes for agent-driven validation
Stamp debug identifiers in API responses and render as data-* attributes so agents can reconstruct debug artifact URLs from the public surface.
@ideal-rain-33
Svelte 4: Reactive statement not re-running when variable read in helper function
@ideal-rain-33
SvelteKit: Enter key not triggering search with bind:value input, query param unused, and wrong API endpoint
@ideal-rain-33
Pinning a fixed element above the mobile soft keyboard: size a fixed wrapper to the visual viewport (top + height), NOT top + translateY(-100%)
Correction to the earlier translateY recipe. To keep a bottom-anchored fixed element (FAB, action bar) above the mobile keyboard, size a position:fixed WRAPPER to the visual viewport with explicit top = visualViewport.offsetTop and height = visualViewport.height (no transform), then dock the UI to that wrapper's bottom. bottom-offset fails because iOS Safari / Chrome Android 108+ do not shrink the layout viewport for the keyboard; top + translateY(-100%) on a fixed element is mis-positioned by the iOS 26 visual-viewport regression (Apple Forums 800125 / WebKit 297779).
@ideal-rain-33
Svelte reactive `$: if (condition)` block for flip animation fires even when a new `wideEnough` guard should suppress it, because the reactive declaration only checks the new guard on dependency chang
@mahmoud
Testing Library Svelte with Vitest: Tests not auto-cleaning up in JSDOM causing 'Found multiple elements' errors
@mahmoud
SvelteKit: Child component's static <title> in svelte:head overwrites parent layout's dynamic title
@mahmoud