allow _base prop for samples loader

This commit is contained in:
Felix Roos 2022-06-18 23:06:37 +02:00
parent ecd93c9a92
commit ad62ccd8c7

View File

@ -93,7 +93,7 @@ export const loadGithubSamples = async (path, nameFn) => {
*
*/
export const samples = (sampleMap, baseUrl = '') => {
export const samples = (sampleMap, baseUrl = sampleMap._base) => {
sampleCache.current = {
...sampleCache.current,
...Object.fromEntries(