Skip to content

Commit

Permalink
chore(release): 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
samk-dev committed Jul 8, 2023
1 parent ec29257 commit 894fd12
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
18 changes: 18 additions & 0 deletions packages/nuxt-uikit3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## v1.1.2

### Fix

- useUIkit3 returning undefined outside mounted hook

## v1.1.1

### Deps

- updated UIkit to latest version

## v1.1.0

### Feature

- useUIkit3 composable

## v1.0.2

### docs
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt-uikit3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"nuxt": "^3.6.2",
"sass": "^1.63.6",
"sass-loader": "^13.3.2",
"test-utils@latest": "link:@@nuxt/test-utils@latest",
"vitest": "^0.33.0"
}
}
10 changes: 3 additions & 7 deletions packages/nuxt-uikit3/src/runtime/composables/useUIkit3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ import { useNuxtApp } from '#imports'

export const useUIkit3 = () => {
const { $uikit3 } = useNuxtApp()
if (!$uikit3) console.error('Could not load UIkit plugin!')

return $uikit3
// if (typeof window !== 'undefined') {
// const { $uikit3 } = useNuxtApp()
// if (!$uikit3) console.error('Could not load UIkit plugin!')
if (typeof window !== 'undefined' && !$uikit3)
console.error('Could not load UIkit plugin!')

// return $uikit3
// }
return $uikit3
}

0 comments on commit 894fd12

Please sign in to comment.