Skip to content

Conversation

@nicolleromero
Copy link
Contributor

Upstreams a fix applied in https://github.com/github/memex/pull/12104

Setting the dependency of htmlContainer to the MarkdownViewer useEffect prevents replaceChildren from running unnecessarily (prevents removing and then immediately adding the element and triggering a bug in the selector-observer library).

Screenshots

See referenced PR for screenshots

Merge checklist

  • [ ] Added/updated tests
  • [ ] Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • [ ] Tested in Edge

@nicolleromero nicolleromero requested review from a team and mperrotti September 20, 2022 22:11
@changeset-bot
Copy link

changeset-bot bot commented Sep 20, 2022

🦋 Changeset detected

Latest commit: 35f5820

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 75.78 KB (0%)
dist/browser.umd.js 76.41 KB (0%)

@nicolleromero nicolleromero temporarily deployed to github-pages September 20, 2022 22:18 Inactive
Copy link
Contributor

@iansan5653 iansan5653 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

Thanks, @nicolleromero!

@colebemis colebemis enabled auto-merge (squash) September 21, 2022 17:34
@colebemis colebemis temporarily deployed to github-pages September 21, 2022 17:42 Inactive
@colebemis colebemis merged commit e2fb2fc into main Sep 21, 2022
@colebemis colebemis deleted the markdown-viewer-hovercard-fix branch September 21, 2022 17:44
@primer-css primer-css mentioned this pull request Sep 21, 2022
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.

4 participants