switch to invokes instead of emits

This commit is contained in:
Joseph Montanaro
2022-12-13 16:50:44 -08:00
parent 48269855e5
commit 9055fa41aa
11 changed files with 91 additions and 40 deletions

View File

@ -8,10 +8,9 @@
onMount(async () => {
// will block until a request comes in
let req = await appState.pendingRequests.get();
console.log(req);
appState.currentRequest = req;
console.log('Got credentials request from queue.');
console.log(appState);
console.log('Got credentials request from queue:');
console.log(req);
dispatch('navigate', {target: 'Approve'});
});
</script>