Skip to content

Conversation

@brandongregoryscott
Copy link
Contributor

Overview
Resolves #1365

This PR implements proper cleanup for the container div that we create for the Portal component, refactors it to a functional component, and adds some test coverage for it. Note: This should maintain SSR compatibility (only attempts to run createPortal once the useEffect has been run on the client)

Screenshots (if applicable)

Documentation

  • Updated Typescript types and/or component PropTypes
  • Added / modified component docs
  • Added / modified Storybook stories

@netlify
Copy link

netlify bot commented Nov 21, 2022

Deploy Preview for evergreen-storybook ready!

Name Link
🔨 Latest commit f3dab67
🔍 Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/637bada08b33090008f797ef
😎 Deploy Preview https://deploy-preview-1549--evergreen-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@brandongregoryscott brandongregoryscott marked this pull request as ready for review November 21, 2022 15:08
const Portal = props => {
const { children } = props

export default class Portal extends Component {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@brandongregoryscott brandongregoryscott merged commit 162b332 into segmentio:master Nov 21, 2022
@brandongregoryscott brandongregoryscott deleted the refactor-portal-fc branch November 21, 2022 18:33
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.

Empty divs in evergree-portal-container using Tooltip

2 participants