Skip to content

fix(clerk-js): Fix custom page rerendering issues#2897

Merged
anagstef merged 2 commits intomainfrom
george/sdk-1420-custom-user-profile-pages-with-user-button-is-causing
Mar 1, 2024
Merged

fix(clerk-js): Fix custom page rerendering issues#2897
anagstef merged 2 commits intomainfrom
george/sdk-1420-custom-user-profile-pages-with-user-button-is-causing

Conversation

@desiprisg
Copy link
Copy Markdown
Contributor

Description

Adding this memoization seems to fix both icon flickering and infinite rerender on the modal version. Not sure why. Content of the page is still mutable so no functionality seems to be affected. @anagstef I'd appreciate if you could verify why this change works as I'm not that familiar with this feature implementation.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@desiprisg desiprisg requested a review from anagstef February 29, 2024 19:03
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 29, 2024

🦋 Changeset detected

Latest commit: 2621e9f

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

@desiprisg
Copy link
Copy Markdown
Contributor Author

Let's add the changeset once we verify why this fix works.

@anagstef anagstef requested a review from octoper February 29, 2024 19:24
@anagstef
Copy link
Copy Markdown
Member

anagstef commented Mar 1, 2024

@desiprisg Good job! This fix works. I'll resolve the conflicts and add a changeset!

@anagstef anagstef force-pushed the george/sdk-1420-custom-user-profile-pages-with-user-button-is-causing branch from 575ffd0 to 2621e9f Compare March 1, 2024 13:11
@anagstef anagstef enabled auto-merge March 1, 2024 13:13
@anagstef anagstef added this pull request to the merge queue Mar 1, 2024
Merged via the queue into main with commit 2f6306f Mar 1, 2024
@anagstef anagstef deleted the george/sdk-1420-custom-user-profile-pages-with-user-button-is-causing branch March 1, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants