Open CameronB9 opened 4 months ago
Hi @CameronB9, thanks for open the Issue.
From which Component/prop are you trying to use ClickProps.setSetps?
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.
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?