Interest in a simple lifecycle callback system? #883
Closed
atomicpages
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
Hey @atomicpages Sorry for the late reply. I'll try to fix some pending issues with react-floater the following weekend and get back on the migration. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
There's a subscription system in v3.0.0 Full migration guide: https://react-joyride.com/docs/migration Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently created a simple stateful wrapper around
react-joyridethat allows extends the current step API with a few new options that allow users to easily "hook" into the joyride lifecycle and run side effects without boilerplate. If this is something the community wants I'd be happy to contribute! Here are the details -- let me know 😄onLoadtype === "tooltip"and allows users to run side effects before the step is rendered. Great if you need to perform some kind of action before the step is rendered like custom scrolling or clicking on something.onNexttype === "step:after"and allows users to perform some logic when next is clicked (e.g. some async action, set a cookie, etc.)onPrevioustype === "steps:before"same use case as above.delaysetTimeout, great for things like animationsdependsonLoad,onNextandonPreviouscallbacks. Great if you need data from a different step (e.g. perform a click)A sample use case:
Beta Was this translation helpful? Give feedback.
All reactions