SkylerBurger / new_tab_dialer

A Chrome extension inspired by Speed Dial [FVD].
https://dialer.skybur.io
1 stars 0 forks source link

Zustand State Management #43

Closed SkylerBurger closed 2 months ago

SkylerBurger commented 2 months ago

Summary

This PR is a refactor requested in Issue #29 in order to more efficiently manage shared state across components. This ticket was a large endeavor, I am not certain if I could have broken this down into more manageable tickets. It was one of those things that falls apart until it all comes back together at the end. This definitely hammers in the importance of planning state management from the get-go and not waiting until later to change state management techniques if you suspect something beyond useState is needed.

On the plus-side, Zustand is incredible, really dried things up in terms of prop-drilling, and was an amazing new tool to learn. I will definitely be using it again in the future.

Changes

There are so many changes on this one that I'll just summarize the general changes.