switch to invokes instead of emits

This commit is contained in:
Joseph Montanaro committed 2022-12-13 16:50:44 -08:00
1 parent 48269855e5
commit 9055fa41aa
11 files changed
+91 -40

No files matched your search

+2 -3
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>