Skip to main content

findAssets

The findAssets hook may be used if the asset id is dynamic. Eg:

const [assets] = findAssets({ nameLike: 'mymodel' });
if (!assets.length) return null;

return <Asset id={assets[0].id} />;