Open Jean-Baptiste-Lasselle opened 9 months ago
// instead of setCounter(counter + 1) // I can setCounter( (cuurentCount) => { return (currentCount +1) } )
Now that will work for sure for aync api calls, but how to do that with ttwitch.on('message' is a different story
Note I also realized its not obvious at al to use rxjs with redux toolkit (aka redux rtk, rtk queries)
Now that will work for sure for aync api calls, but how to do that with ttwitch.on('message' is a different story
Note I also realized its not obvious at al to use rxjs with redux toolkit (aka redux rtk, rtk queries)