Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 4x 4x 49x | import { slot } from '../slot'
import type { Rune } from '../../RuneHub'
/**
* Gets the current value of a rune without tracking dependencies.
* Unlike get(), this does not create a dependency relationship.
* Useful when you need to read a value without triggering reactivity.
* @template T - The rune function type
* @param rune - The rune to get the value from
* @returns The current value of the rune
* @example
* ```ts
* const count = () => 5
* const value = raw(count) // 5, no dependency tracked
* ```
*/
export function raw<T extends Rune> (rune: T): ReturnType<T> {
return slot(rune).raw
}
|