37
loading...
This website collects cookies to deliver better user experience
__REDUX_DEVTOOLS_EXTENSION__
) in the window. A weird name for sure, but it prevents any conflicts with your existing code.connect
and disconnect
methods that link our code with the Redux DevTools.connect
method. It possesses an init method that launches the DevTools session.Provider
, which looks like this:@@INIT
event that pops in.devTools
object that we have created also provides a send
method, which takes a name and some data to illustrate the change.Provider
to make it truly usable:useReduxDevtools
hook we created in the Provider
file to wrap the initial method into a high-order function that handles the debug session:setTheme
method, it pops in the DevTools so you can inspect what is going on!