Created
March 28, 2023 04:02
-
-
Save vdhanan/bc034bf2e099b969724d25e04e77ba3b to your computer and use it in GitHub Desktop.
git diff for testing generateNonce from JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/native/data/sqlite-data-handler.js b/native/data/sqlite-data-handler.js | |
index 4b5109344..f6a577595 100644 | |
--- a/native/data/sqlite-data-handler.js | |
+++ b/native/data/sqlite-data-handler.js | |
@@ -75,6 +75,20 @@ function SQLiteDataHandler(): React.Node { | |
`SQLite database deletion was triggered by ${triggeredBy}`, | |
); | |
} | |
+ Alert.alert(new Date().toISOString()); | |
+ const foo = commCoreModule.generateNonce(); | |
+ const bar = commCoreModule.generateNonce(); | |
+ Alert.alert(new Date().toISOString()); | |
+ const x = await foo; | |
+ Alert.alert(new Date().toISOString()); | |
+ if (x) { | |
+ Alert.alert('Got back ' + x); | |
+ } | |
+ const y = await bar; | |
+ Alert.alert(new Date().toISOString()); | |
+ if (y) { | |
+ Alert.alert('Got back' + y); | |
+ } | |
}, | |
[staffCanSee, staffUserHasBeenLoggedIn], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment