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

redux toolkit fussing over boolean definition for state [2:20am] #19

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: unfortunately downversioning Next so at the same time upgrading react-redux-connect to @reduxjs-toolkit

error: Screen Shot 2023-07-09 at 2 20 21 AM

Screen Shot 2023-07-09 at 2 25 35 AM

proposed approach: 0: 👍 TOGGLE_HYDRO_SETTINGS: (state:any) => { // crazy this is true

1: haven't made the other reducer yet so maybe adding :boolean to that would be better.

// will be making another app right away and this was ready for deployment last week so super critical to move on // already being gentle and generous going thru ringer and broadening redux toolbelt.

frankcollins3 commented 1 year ago

// this is not a boolean specified issue, there is some meta concept asserting the error. 👎 TOGGLE_HYDRO_SETTINGS: (state:string) => {

oh wow just realized of course because this is a function not state

[2:28am]