Skip to content

canStart not updated when using tourKey identifier #161

Open
@kaliseo

Description

@kaliseo

Hi There,

I'm trying to use tourKey to implement 2 tours in 2 different screens.

But when i'm passing tourKey to useTourGuideController, canStart is never triggered.

const { canStart, start, TourGuideZone } = useTourGuideController('hometour')

React.useEffect(() => { console.log('canStart', canStart) <-- undefined, never fired again. if (canStart) { console.log('start hometour') start(); } }, [canStart])

const { canStart, start, TourGuideZone } = useTourGuideController() <-- Works well

Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions