dai-shi / react-hooks-global-state

[NOT MAINTAINED] Simple global state for React with Hooks API without Context API
https://www.npmjs.com/package/react-hooks-global-state
MIT License
1.1k stars 62 forks source link

How to use Redux Devtools Extension #37

Closed hug0b closed 4 years ago

hug0b commented 4 years ago

The README specifies

Redux middleware support to some extent

Some of libraries in Redux ecosystem can be used. Redux DevTools Extension could be used in a simple scenario.

But I am not sure how to connect it to the store, could you provide an example ?

dai-shi commented 4 years ago

Currently, there's only one example. Please check out examples/08_thunk.

rimsila commented 4 years ago

@dai-shi I can't use it in Next JS. It say windows of undefined.

dai-shi commented 4 years ago

@rimsila Thanks for reporting it. I would need someone to help with this. Note: the devtools support is pretty hacky and limited. It might not work in some complex cases. But, the undefined error could be fixed.