Svelte @svelte.dev · Dec 11

Day 11 — a whole new module, for getting reactive views of window properties like innerWidth, innerHeight, scrollX, scrollY and so on. Like the bindings on <svelte:window> but with less boilerplate 🎁 docs svelte.dev/docs/svelte/... 🎁 demo svelte.dev/playground/8...

123 likes 2 replies

?

Replies

D

Jonas Dyvik Nilsen · Dec 22

Does Svelte have a way of getting innerHeight, *ignoring* whether the address bar is visible or not in mobile browsers? Yknow, the way svh and lvh should work. Except they don't in Firefox and many built-in browsers. Mayday! (Context: github.com/mozilla-mobi...) @svelte.dev @rich-harris.dev

Svelte · Dec 12

Day 12 — send custom types across the network boundary in SvelteKit, whether it's a class containing reactive state, a class used by your database ORM library, or whatever. Just export a `transport` object from your `hooks.js` 🎁 docs svelte.dev/docs/kit/hoo... 🎁 demo stackblitz.com/edit/sveltej...