Recommended way to log state
damassi opened this issue · 3 comments
damassi commented
Noticed that when running console.log(state)
it returns a proxy. What's the suggested way of logging out state? is it possible to unwrap the proxy that's returned from a useReduxState
call?
dai-shi commented
Ah, good catch. Let me work on that.
dai-shi commented
@damassi
It turns out that there's no easy way to console.log a proxy unwrapped.
What is the exact problem you are having?
You could try: console.log(JSON.stringify(state))
which I don't recommend very much.
You could also use redux logging middleware.
damassi commented
Sounds good! was curious. Thanks for looking into it 👍