react-tracked icon indicating copy to clipboard operation
react-tracked copied to clipboard

Redux DevTools Support

Open theskinnycoder opened this issue 3 years ago • 3 comments
trafficstars

Would it be possible to integrate Redux DevTools when state is managed by React Tracked? Like maybe a middleware for all our stores like in Zustand, but here instead of subscribing to an external store, the devtools subscribe to the underlying React Context created by React Tracked.

theskinnycoder avatar Sep 27 '22 07:09 theskinnycoder

It would be tricky to support redux devtools. Do you know any practice with useState and redux devtools? It can be applicable to react-tracked.

Otherwise, react dev tools would better fit.

dai-shi avatar Sep 27 '22 09:09 dai-shi

Found this I think maybe this is an implementation of using useState with Redux DevTools.

Code : https://github.com/jherr/redux-devtools/blob/main/hooks-test/src/App.js

theskinnycoder avatar Sep 29 '22 06:09 theskinnycoder

Cool. If that works, you can do the same thing in your useValue you pass to createContainer. Please give it a try.

dai-shi avatar Oct 02 '22 03:10 dai-shi

Closing as stale.

dai-shi avatar Mar 02 '24 01:03 dai-shi