mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-12 22:46:11 +03:00
metadata-fe: timeout preview fetch
This commit is contained in:
parent
fac22be28a
commit
be666d784b
@ -35,7 +35,7 @@ const useMetadataState = createState<MetadataState>(
|
||||
return state.previews[group];
|
||||
}
|
||||
try {
|
||||
const preview = await airlock.subscribeOnce('metadata-pull-hook', `/preview${group}`);
|
||||
const preview = await airlock.subscribeOnce('metadata-pull-hook', `/preview${group}`, 20 * 1000);
|
||||
if('metadata-hook-update' in preview) {
|
||||
const newState = get();
|
||||
newState.set((s) => {
|
||||
|
Loading…
Reference in New Issue
Block a user