Whats the proper way to load user data?
Question : Whats the optimal way to load user data ? Onload or via API calls when user clicks on things . . . For example , I have . form input , users can load past form data into the form inputs if they want . Should the users form data be loaded when they click (meaning I 'd have to make an API call to retrieve the data ) or should all user data be loaded when the page loads ? This really depends on so many factors . Let ’s say that the form data was pre -filled with their profile data as an example , I don ’t see any issues with that being preloaded if that ’s the expected behaviour . But if you mean they go to the “Blogs ” page and then have to click on ”Load blogs ” then that can be a tacky experience for users . At the end of the day it comes down to what sort of experience you want for you users and then trying to ensure you ’re doing it in the most optimal way . 👍1
.jpeg/public)