Closed panteliselef closed 1 month ago
Latest commit: 29a930c22bdb8bab731a45f8c90e56ff2a601923
The changes in this PR will be included in the next version bump.
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
Description
Fixes: DASH-183
This PR address the following issues:
afterSignOutUrl
but when user deletes their account, the providedafterSignOutUrl
is not respected.afterMultiSessionSingleSignOutUrl
in user button but the user when they delete one of their accounts is not redirected to the appropriate url defined as prop.The main issue is that we don't propagate
afterSignOutUrl
andafterMultiSessionSingleSignOutUrl
from the UserButton to UserProfile.This PR addresses that by positioning those props at the root lever (ClerkProvider or Clerk.load). We considered simply introducing those props to UserProfile, but the naming would not be ideal. We also considered renaming them, but at that point you want the components to always be in sync, so we positioned them at the root.
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change