Skip to content

Fix: Async getItem function may return null#59

Open
faiare wants to merge 1 commit intopolemius:masterfrom
faiare:master
Open

Fix: Async getItem function may return null#59
faiare wants to merge 1 commit intopolemius:masterfrom
faiare:master

Conversation

@faiare
Copy link
Copy Markdown

@faiare faiare commented May 16, 2022

getItem function in AsyncStorage may return null.
For this reason I have changed getItem to accept Promise<string | null> and added handling if null is returned.

@objectiveSee
Copy link
Copy Markdown

Can you provide a full example of this issue?

@polemius polemius force-pushed the master branch 2 times, most recently from 050c87f to 2f70d34 Compare May 17, 2023 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants