Skip to content

[React Native] Operations hang waiting for sodium.ready #33

@kaxline

Description

@kaxline

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions