convex
Version:
Client for the Convex Cloud
9 lines • 386 B
TypeScript
/**
* This code is taken from https://gist.github.com/bvaughn/e25397f70e8c65b0ae0d7c90b731b189
* because correct subscriptions in async React is complex!
*/
export declare function useSubscription<Value>({ getCurrentValue, subscribe, }: {
getCurrentValue: () => Value;
subscribe: (callback: () => void) => () => void;
}): Value;
//# sourceMappingURL=use_subscription.d.ts.map