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
Reproduction playground
I think in this case returning OutputSelector, not OutputParametricSelector, but I couldn't figure it out why
OutputSelector
OutputParametricSelector
Workaround solution - put optional props in object:
import { createSelector } from "reselect"; type Props = { data?: string; } const selector = createSelector( (_: any, { data }: Props) => data, (data) => data ); selector(null, "hello world");
The text was updated successfully, but these errors were encountered:
And I found second solution, but in this case second argument is required and they can be undefined
import { createSelector } from "reselect"; const selector = createSelector( (_: any, data: string | undefined) => data, (data) => data ); selector(null, "hello world");
Sorry, something went wrong.
Should be fixed by #486 .
No branches or pull requests
Reproduction playground
I think in this case returning
OutputSelector
, notOutputParametricSelector
, but I couldn't figure it out whyWorkaround solution - put optional props in object:
The text was updated successfully, but these errors were encountered: