jhonnymichel / react-hookstore

A state management library for react using the bleeding edge hooks feature

Home Page:https://codesandbox.io/s/r58pqonkop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What about implementing a reducer logger?

DavoBR opened this issue · comments

commented

I've been looking for an easy way to implement React-Hooks without reinventing the wheel and I found this library, but like Redux has a logger, do you plan to implement your own logger? Or is there a way to implement use-reducer-logger? something like middlewares

It would be easy enough to create a high-order-reducer that adds the log functionality on the app code. I currently have no plans on adding support to middlewares

I think this use-reducer-logger might work, it is exactly a high-order-reducer