Skip to content

Commit

Permalink
[test-studio] Add example of async slug source
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Feb 19, 2020
1 parent cd0e9c0 commit 6a8fa93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/test-studio/schemas/slugs.js
Expand Up @@ -123,6 +123,14 @@ export default {
}
}
]
},
{
name: 'async',
type: 'slug',
title: 'Async slug resolving',
options: {
source: doc => new Promise(resolve => setTimeout(resolve, 1000, doc.title))
}
}
]
}

0 comments on commit 6a8fa93

Please sign in to comment.