The controlled demo is too complicated for imbeciles like me. #663
-
I'm about to finish up on my second day of trying to figure out how to integrate React Joyride with my app. The demos are beautiful and I'm sure fantastic for all of those super talented coders out there. I'm, unfortunately, not one of them. I've posted a question on Stack and am trying to make a demo to help anyone as hopeless as I am, but I'm finding it very difficult to isolate the useful information I need from the existing demos. I don't suppose anyone could help me by answering the queries I have made here: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hey @jimmythecode Do you really need a controlled tour? Most cases don't need that...
Not sure why it was happening (probably because the Joyride component was rendered again between state changes). Change the conditional to: The beacon appeared because it skipped a step...
It is happening.
Since you are controlling the tour you need to take the |
Beta Was this translation helpful? Give feedback.
hey @jimmythecode
Do you really need a controlled tour? Most cases don't need that...
Not sure why it was happening (probably because the Joyride component was rendered again between state changes).
But the callback was called twice with the
type
EVENTS.STEP_AFTER andindex
0 so it increased the stepIndex twice. 0 -> 2Change the conditional to:
else if (data.index === stepIndexState && (type === EVENTS.STEP_AFTER || type === EVENTS.TARGET_NOT_FOUND))
The beac…