mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
/**
|
|
* Returns a reactive source that subscribes to the current value of the given
|
|
* signal or getter function.
|
|
*
|
|
* @param getter The getter function to subscribe to.
|
|
* @return The reactive source.
|
|
*/
|
|
export function useSignalState<T>(getter: () => T, dependencies?: any[]): () => T;
|
|
|
|
// Aliases
|
|
export { useSignalState as useAtom };
|