Closed Beznet closed 4 years ago
I was exploring the concept of using the 'useContext' hook to persist state between the index.js and results.js pages but it seems the core functionality of NextJS doesn't allow for this as it refreshes the app upon each page load thus killing what I had stored in the context. After talking with GK, it seems like either using local storage or Redux might be the way to go. Im thinking of using Redux just to learn the basics of it since I've never used it before, even though that sort of seems overkill.
Went with localStorage
API since it was easiest to access
Created the results page with access to localStorage items
This is a bit of a restructure. After a user clicks "Tydii Up" it will sent them to a new page, instead of the Decision Table modal, which will offer the entire list separated into "Donate" and "Keep" categories. This way a user can keep track of their entire list at a glance. This is the place where I will implement the 'Save List" feature and have the resources for Donating and Selling your items.
Rough sketch attached![tydii_new_page_sketch](https://user-images.githubusercontent.com/10566470/80050961-98d52b00-84dc-11ea-849b-092f220df617.jpg)