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
Very good usage of the local storage for the persistent data, but at the same is always good to think of the best data structure to store the data. In this case, if your website ends up with a lot of products, it might be more efficient to have a good array of objects so that you only retrieve just one array for all the data, the process it a little bit longer because you will need to parse to JSON the array before storing it and parse it back when you are retrieving it but It will allow you to managed more products and information without issues.
The text was updated successfully, but these errors were encountered:
Very good usage of the local storage for the persistent data, but at the same is always good to think of the best data structure to store the data. In this case, if your website ends up with a lot of products, it might be more efficient to have a good array of objects so that you only retrieve just one array for all the data, the process it a little bit longer because you will need to parse to JSON the array before storing it and parse it back when you are retrieving it but It will allow you to managed more products and information without issues.
The text was updated successfully, but these errors were encountered: