@finema/finework-layer 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.23](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.22...2.0.23) (2026-07-31)
4
+
3
5
  ## [2.0.22](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.21...2.0.22) (2026-07-31)
4
6
 
5
7
  ## [2.0.21](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.20...2.0.21) (2026-07-31)
@@ -147,6 +147,8 @@ const folderId = ref<string | undefined>(undefined)
147
147
  const thumbnailUrl = ref<string | null>(null)
148
148
  const isCreatingFolder = ref(false)
149
149
  const newFolderName = ref('')
150
+ const hasFetchedBookmarks = ref(false)
151
+ const hasFetchedFolders = ref(false)
150
152
 
151
153
  const bookmarks = useBookmarksLoader()
152
154
  const folders = useBookmarkFoldersLoader()
@@ -160,14 +162,19 @@ const folderOptions = computed(() => folders.fetch.items.map((folder) => ({
160
162
  value: folder.id,
161
163
  })))
162
164
 
163
- onMounted(() => {
164
- bookmarks.fetchAll()
165
- folders.fetchAll()
166
- })
167
-
168
165
  watch(isOpen, (open) => {
169
166
  if (!open) return
170
167
 
168
+ if (!hasFetchedBookmarks.value) {
169
+ bookmarks.fetchAll()
170
+ hasFetchedBookmarks.value = true
171
+ }
172
+
173
+ if (!hasFetchedFolders.value) {
174
+ folders.fetchAll()
175
+ hasFetchedFolders.value = true
176
+ }
177
+
171
178
  isCreatingFolder.value = false
172
179
  newFolderName.value = ''
173
180
  url.value = ''
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "2.0.22",
4
+ "version": "2.0.23",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",