Skip to content

Commit 406ab4d

Browse files
committed
feat(clerk-js,react): Implement TaskResetPassword mounting functionality in IsomorphicClerk
1 parent 41f2886 commit 406ab4d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/nextjs/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export {
3535
SignUp,
3636
SignUpButton,
3737
TaskChooseOrganization,
38+
TaskResetPassword,
3839
UserAvatar,
3940
UserButton,
4041
UserProfile,

packages/react/src/isomorphicClerk.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,10 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
677677
clerkjs.mountTaskChooseOrganization(node, props);
678678
});
679679

680+
this.premountTaskResetPasswordNodes.forEach((props, node) => {
681+
clerkjs.mountTaskResetPassword(node, props);
682+
});
683+
680684
/**
681685
* Only update status in case `clerk.status` is missing. In any other case, `clerk-js` should be the orchestrator.
682686
*/
@@ -1219,7 +1223,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
12191223
}
12201224
};
12211225

1222-
mountTaskResetPassword = (node: HTMLDivElement, props?: TaskResetPasswordProps): void => {
1226+
__experimental_mountTaskResetPassword = (node: HTMLDivElement, props?: TaskResetPasswordProps): void => {
12231227
if (this.clerkjs && this.loaded) {
12241228
this.clerkjs.mountTaskResetPassword(node, props);
12251229
} else {

0 commit comments

Comments
 (0)