Skip to content

Commit

Permalink
chore(clerk-js,clerk-react): Update JSDocs to mark setActive stable (
Browse files Browse the repository at this point in the history
…#1917)

* chore(clerk-js,clerk-react): Update JSDocs to mark `setActive` stable

* Create slimy-hornets-obey.md
  • Loading branch information
dimkl authored Oct 18, 2023
1 parent a39d652 commit 37d8856
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/slimy-hornets-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@clerk/clerk-js": patch
"@clerk/clerk-react": patch
---

Consider `Clerk.setActive` as stable.
3 changes: 0 additions & 3 deletions packages/clerk-js/src/core/clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,6 @@ export default class Clerk implements ClerkInterface {

/**
* `setActive` can be used to set the active session and/or organization.
* It will eventually replace `setSession`.
*
* @experimental
*/
public setActive = async ({ session, organization, beforeEmit }: SetActiveParams): Promise<void> => {
if (!this.client) {
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/isomorphicClerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ export default class IsomorphicClerk {

/**
* `setActive` can be used to set the active session and/or organization.
* It will eventually replace `setSession`.
*
* @experimental
*/
setActive = ({ session, organization, beforeEmit }: SetActiveParams): Promise<void> => {
if (this.clerkjs) {
Expand Down

0 comments on commit 37d8856

Please sign in to comment.