🔥Reactive Durations: Dynamically change interval timings
🧘Simple, intuitive, clean
🗑️Automatic Cleanup: No memory leak
🦥Lazy Initialization: Intervals only created on .current
🤌Tiny: Only 203B min+br
www.npmjs.com/package/svel...
🔥Reactive Durations: Dynamically change interval timings
🧘Simple, intuitive, clean
🗑️Automatic Cleanup: No memory leak
🦥Lazy Initialization: Intervals only created on .current
🤌Tiny: Only 203B min+br
www.npmjs.com/package/svel...
That's +400 in just 10 days. We're so back!
That's +400 in just 10 days. We're so back!
More responses could mean a kickass library later this year 👀👀
More responses could mean a kickass library later this year 👀👀
Me: Umm...
Me: Umm...
$.state() - creates reactive state
$.set() - updates state
$.get() - reads state
$.template_effect() - reactive scope
This is the SAME *visual* pattern as React's useState, Solid's createSignal, Angular's signals!
$.state() - creates reactive state
$.set() - updates state
$.get() - reads state
$.template_effect() - reactive scope
This is the SAME *visual* pattern as React's useState, Solid's createSignal, Angular's signals!
First, let's look at Svelte 4. This innocent code:
First, let's look at Svelte 4. This innocent code:
Most of it is converting options to plugins. Reactivity is now manual instead of automatic - better performance, more predictable.
Most of it is converting options to plugins. Reactivity is now manual instead of automatic - better performance, more predictable.
Plugin API is straightforward. Hook into the drag lifecycle, modify the context. 15 lines gets you magnetic snapping.
Plugin API is straightforward. Hook into the drag lifecycle, modify the context. 15 lines gets you magnetic snapping.
Svelte, React, Vue, SolidJS, Vanilla JS
Same plugin system across all of them. Core is a peer dependency so it's deduplicated properly in meta-frameworks.
Svelte, React, Vue, SolidJS, Vanilla JS
Same plugin system across all of them. Core is a peer dependency so it's deduplicated properly in meta-frameworks.
Stack behaviors together. Each plugin focuses on one thing.
Stack behaviors together. Each plugin focuses on one thing.
Basic dragging is small. Each plugin adds only its own weight. Import just what you use instead of paying for the whole library upfront.
Basic dragging is small. Each plugin adds only its own weight. Import just what you use instead of paying for the whole library upfront.