On the user profile page, we provide the user with the option to change the background pattern. Currently, we are storing it in the component itself, however, we now want to save it to the local device in the AppState Object, which is globally accessible throughout the application. The logic for storing the AppState object to LocalStorage is already in place, you just need to add a field of pattern to it.
Issue 🙉
On the user profile page, we provide the user with the option to change the background pattern. Currently, we are storing it in the component itself, however, we now want to save it to the local device in the
AppState
Object, which is globally accessible throughout the application. The logic for storing theAppState
object to LocalStorage is already in place, you just need to add a field of pattern to it.References 🦅