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
When a customer is using the website, we want to make sure that their data is persisted in case they accidentally navigate away from the page. Data to be persisted includes the items in their cart, their login/login status & relevant account information
Action Items:
Hook:
The hook sets data passed to it into localStorage & returns the created key
The hook reads or creates the Context
The hook retrieves any piece of data from localStorage as requested
The hook updates any previously set value in localStorage when requested
The hook uses JSON.stringify() and JSON.parse() to convert data to & from a string (since localStorage only supports strings)
The hook follows the [Rules of Hooks], and follows the naming convention for hooks
Misc:
Personal data about the customer is stored securely
A naming convention for how data is set into localStorage has been created and documented
Overview:
When a customer is using the website, we want to make sure that their data is persisted in case they accidentally navigate away from the page. Data to be persisted includes the items in their cart, their login/login status & relevant account information
Action Items:
Hook:
Misc:
Resources:
The text was updated successfully, but these errors were encountered: