svecosystem / runed

Magical utilities for your Svelte applications (WIP)
https://runed.dev
MIT License
387 stars 21 forks source link

Sharable rune primitives #93

Closed th3l0g4n closed 1 month ago

th3l0g4n commented 1 month ago

Describe the feature in detail (code, mocks, or screenshots encouraged)

This is exactly the kind of library svelte needs right now. Especially with the introduction of the new runes API. As the current utilities are already loosely based on vue primitives, are you planning to introduce base primitives that make it easier to sharing state between componentes and hooks / composables?

I am thinking about equivalents for ref and reactive (maybe computed) in the vue reactivity system.

What type of pull request would this be?

Enhancement

Provide relevant links or additional information.

https://vuejs.org/api/reactivity-core#ref https://vuejs.org/api/reactivity-core#reactive https://vuejs.org/api/reactivity-core#computed

TGlide commented 1 month ago

We did have these before, but don't think they're needed. Check our internals to see how we make do without refs, reactive or computed :)