We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ce2f4 commit 140cdb8Copy full SHA for 140cdb8
packages/react-hooks/src/useSubscription.js
@@ -29,7 +29,7 @@ export function useSubscription<Value, Source>({
29
source: Source,
30
getCurrentValue: (source: Source) => Value,
31
subscribe: (source: Source, callback: Function) => () => void,
32
-|}) {
+|}): Value {
33
// Read the current value from our subscription source.
34
// When this value changes, we'll schedule an update with React.
35
// It's important to also store the source itself so that we can check for staleness.
0 commit comments