-
-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Line 25 in a329037
await sodium.ready; |
This one is tricky and I don't have time to make a project that reproduces it, but wanted to note it here just in case anyone has some bright ideas.
When calling login
or signup
from the top App component of my app, everything works fine, but when I call them from components further down the tree, the ready
function in Crypto.ts
returns false or never returns. If I comment out all the ready
checks, everything works fine.
I'm not sure of an elegant way to handle this and if there would be downstream effects to removing this call for React Native. Or possibly this is a problem with my own setup. Although I did remove all but three components in my component tree in order to find this function as the culprit. So it was as barebones as my app could get but of course there are other libraries being loaded that may be conflicting somehow.