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
I'm getting the below typescript error:
I have had a look at the index.d.ts file and it looks like it is marked as optional:
type ClickProps = { ... setSteps?: Dispatch<React.SetStateAction<StepType[]>>; }
I have also had a quick look at the source code and it's not conditionally defined there. Am I missing something, should the prop be marked optional?
The text was updated successfully, but these errors were encountered:
Hi @CameronB9, thanks for open the Issue.
From which Component/prop are you trying to use ClickProps.setSetps?
Sorry, something went wrong.
It's the useTour hook. Here's a small example:
import { useTour } from '@reactour/tour'; const { setSteps } = useTour(); const steps = mySteps.filter(filterFn); // error here, object is possibly undefined setSteps(steps)
I am setting different steps depending on which page the user is currently on.
No branches or pull requests
I'm getting the below typescript error:
I have had a look at the index.d.ts file and it looks like it is marked as optional:
I have also had a quick look at the source code and it's not conditionally defined there. Am I missing something, should the prop be marked optional?
The text was updated successfully, but these errors were encountered: