Skip to content

Conversation

maoryadin
Copy link
Owner

@maoryadin maoryadin commented Mar 25, 2025

Update hideSpotlight function and componentWillUnmount method in src/components/Overlay.tsx.

  • Add continuous to the destructured props in the hideSpotlight function.
  • Update the hiddenLifecycles array to include LIFECYCLE.BEACON, LIFECYCLE.COMPLETE, and LIFECYCLE.ERROR.
  • Update the shouldHide variable to account for the continuous property.
  • Update the hideSpotlight function to return shouldHide.
  • Add state reset for mouseOverSpotlight to componentWillUnmount method.

For more details, open the Copilot Workspace session.

Update `hideSpotlight` function and `componentWillUnmount` method in `src/components/Overlay.tsx`.

* Add `continuous` to the destructured props in the `hideSpotlight` function.
* Update the `hiddenLifecycles` array to include `LIFECYCLE.BEACON`, `LIFECYCLE.COMPLETE`, and `LIFECYCLE.ERROR`.
* Update the `shouldHide` variable to account for the `continuous` property.
* Update the `hideSpotlight` function to return `shouldHide`.
* Add state reset for `mouseOverSpotlight` to `componentWillUnmount` method.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/maoryadin/react-joyride?shareId=XXXX-XXXX-XXXX-XXXX).
@maoryadin maoryadin merged commit 2959c4e into main Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant