function* waitFor(collectionName, interval = 10) {
	// eslint-disable-next-line no-constant-condition
	while (true) {
		const collection = yield select(api.selectors.collections.get, collectionName);
		if (collection !== undefined) {
			break;
		}
		yield call(delay, interval);
	}
}
/**
 * This function wait until a collection is here
 * @param {string} collectionName the name of the collection
 * @param {int} interval the interval to check again if the collection is there
 */
This function wait until a collection is here
@param {string} collectionName the name of the collection
@param {int} interval the interval to check again if the collection is there
This function wait until a collection is here @param { string } collectionName the name of the collection @param { int } interval the interval to check again if the collection is there
function* waitFor(collectionName, interval = 10) {
	while (true) {
		const collection = yield select(api.selectors.collections.get, collectionName);
		if (collection !== undefined) {
			break;
		}
		yield call(delay, interval);
	}
}
function * waitFor ( collectionName , interval = 10 ) { while ( true ) { const collection = yield select ( api . selectors . collections . get , collectionName ) ; if ( collection !== undefined ) { break ; } yield call ( delay , interval ) ; } }
This function wait until a collection is here
 @param {string} collectionName the name of the collection
 @param {int} interval the interval to check again if the collection is there
This function wait until a collection is here @param { string } collectionName the name of the collection @param { int } interval the interval to check again if the collection is there
// eslint-disable-next-line no-constant-condition