Skip to content

Commit 6f21779

Browse files
committed
Adjust vue composable to execute when Clerk is loaded
1 parent 3719548 commit 6f21779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue/src/composables/useOrganization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const useOrganization: UseOrganization = () => {
5959
const unwatch = watch(
6060
clerk,
6161
value => {
62-
if (value) {
62+
if (value?.loaded) {
6363
value.__internal_attemptToEnableEnvironmentSetting({
6464
for: 'organizations',
6565
caller: 'useOrganization',

0 commit comments

Comments
 (0)