Beznet / tydii

Organization app for decluttering
https://www.tydiiup.com
1 stars 0 forks source link

Create Page After Tydii Up Button Submit #30

Closed Beznet closed 4 years ago

Beznet commented 4 years ago

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

Beznet commented 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.

Beznet commented 4 years ago

Went with localStorage API since it was easiest to access

Beznet commented 4 years ago

Created the results page with access to localStorage items