Are the following statements true?
this counts as one API call
this does not count as API call
this counts as one API call
Thanks
Are the following statements true?
Thanks
Hello @Klaas_Klever,
- if the user is already loaded it won’t make a request to the server
- it will make a request to the server
or
- if the user is not loaded and the LocalStorage doesn’t contains the userId it won’t make an API call
- it makes an API call only there is
user-token
(in LocalStorage or in the current user token)
Regards,
Olha
Hi @olhadanylova ,
What does it mean “the user is loaded”? Does this mean, the local storage entry exists?
When the user logs in the first time the userId и userToken are stored in the Local Storage.
The entity of the successfully logged in user is stored in the browser memory (RAM).