MCPcopy Create free account
hub / github.com/nuxt/icon / loadCustomCollection

Method loadCustomCollection

src/context.ts:125–139  ·  view source on GitHub ↗
(force = false)

Source from the content-addressed store, hash-verified

123 }
124
125 async loadCustomCollection(force = false): Promise<IconifyJSON[]> {
126 if (force) {
127 this.clientBundleVersion += 1
128 this._customCollections = undefined
129 }
130 if (!this._customCollections) {
131 this._customCollections = this._loadCustomCollection()
132 .then((collections) => {
133 if (this._customCollections)
134 this._customCollections = collections
135 return collections
136 })
137 }
138 return this._customCollections
139 }
140
141 private async _loadCustomCollection(): Promise<IconifyJSON[]> {
142 return Promise.all(

Callers 3

_resolveServerBundleMethod · 0.95

Calls 1

_loadCustomCollectionMethod · 0.95

Tested by

no test coverage detected