We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useObservable
const y = useObservable((input$, state$) => state$, undefined, [1]); // Actual type: `[number] | undefined` // Expected type: `undefined`
The text was updated successfully, but these errors were encountered:
Fix useObservable state generic inference
9b60bf8
Fixes LeetCode-OpenSource#171
Only happens when "strictFunctionTypes": false.
"strictFunctionTypes": false
Workaround: use explicit generics
const y = useObservable<undefined, [number]>((input$, state$) => state$, undefined, [1]);
PR with fix: #176
Sorry, something went wrong.
de82f26
Fixes LeetCode-OpenSource/rxjs-hooks#171
214a85c
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: