Datasets have an onReady function

Did you know that datasets have an onReady function ? If you are adding code to a dataset and it’s not working the way you expect, it may be because the dataset hasn’t fully loaded by the time your code runs.

By placing your code inside the onReady function’s callback, you ensure that your code doesn’t run until the dataset is completely loaded.

5 Likes

As soon as you have a dataset on a page you should add the onReady function automatically in code somewhere. This is the most common error why datasets are not behaving the way one would expect. Really good that you point this out.

does anyone know why when i set up a profile and upload the profile picture, name and everything on one single profile and open a new tab and go to the website and sign out and create another test profile and go to my new test profile everything is back to default but when i refresh the first tab that has my profile picture, first name and everything and refresh that tab, its all gone…?

Hi Austin,
Your question should go to the Q&A forum.
-Jeff

Hi Jeff,

I tried posting so many times in the Q&A but no one gets to helping me, do you think you can help me with this one problem? Do you think it is because i have the wix sign in code on the page code and site code area or should i just move it all to the site code area and it will fix the problem with creating multiple profile pages without reseting back to only one?

Hi Austin,
I’ll mention your issue to the Q&A guys and hopefully someone will get back to you.