Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clerk-js, types): asStandalone accepts a callback #4423

Conversation

panteliselef
Copy link
Member

Description

The new callback will fire upon "closing" the pop-over

Example usage

const [open, setOpen] = useState(false)

{open && <OrganizationSwitcher.Outlet asStandalone={setOpen} />}

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:

Copy link

changeset-bot bot commented Oct 29, 2024

🦋 Changeset detected

Latest commit: db30c07

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

@panteliselef panteliselef enabled auto-merge (squash) October 29, 2024 14:48
@panteliselef panteliselef merged commit 5be7ca9 into main Oct 29, 2024
22 checks passed
@panteliselef panteliselef deleted the elef/sdki-723-investigate-orgswitcher-persistence-on-org-change branch October 29, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants