frankcollins3 / Next-Water-App

Happy, Healthy Water Cycling App that tracks user/human fluid intake.
https://next-water-app.vercel.app
1 stars 0 forks source link

Context doesn't have access to another context within same directory [5:04pm] #108

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: modularize a logoutPROMISE that expresses a removing of cookies from: chrome-dev-tools -> application -> cookies (by name of cookie which would be function parameter)

error: useContext() cant use useContext of null

proposed approach: 👍 already solved just use the same modular function by abstractly describing it within the Promises.

👍 Contexts/Promises

👎 Contexts/Regex

can use either modularly since The provider isnt wrapping around Contexts/Promise and Contexts/Regex but they can both wrap around the app so that components can use either one together. cant use them within each other.