You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In README.md, this line seems to be executing .getItem() synchronously. As getItem() requires an asynchronous or promise methods, is this a documentation bug?
...
return localforage.getItem('key');
...
The text was updated successfully, but these errors were encountered:
Here localforage.getItem('key') is a Promise and it's correctly written in the documentation. The await or .then() clausule should be when calling the function wrapping this return.
In README.md, this line seems to be executing .getItem() synchronously. As getItem() requires an asynchronous or promise methods, is this a documentation bug?
The text was updated successfully, but these errors were encountered: