Replies: 1 comment
-
Already done |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, I have the next problem:
I use this function to update my application when I swipe down
It is called from scroll view (refreshcontrol)
The problem is that it doesn't work synchronously. In console log i see my snapshot. But the application updated faster and in console.log(lessons) it is undefined. How can I fix it?
I want the first time the application was launched with the Internet, I want the data to be downloaded from the data, but if there is no access to the Internet, null returns. But all the recent discoveries of the application without access to the Internet, the data was downloaded from the locale, but if there is an Internet connection and there is a change in the dates, these were updated. Also, when swipe at the bottom to data try to update, if there is no Internet then the local data return.
Beta Was this translation helpful? Give feedback.
All reactions