You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've successfully connected Raj to the Redux DevTools extension for Chrome.
functionconnectDevToolsTo(program){constextension=window.__REDUX_DEVTOOLS_EXTENSION__;if(!extension){console.error("Redux DevTools not available.");returnprogram;}constdevTools=extension.connect();constsetState={};const[state,effect]=program.init;return{
...program,init: [state,dispatch=>{devTools.init(state);devTools.subscribe((message)=>{if(message.type==='DISPATCH'&&message.state){dispatch({type: setState,state: JSON.parse(message.state)});}});if(effect){effect(dispatch);}}],update: (message,state)=>{if(message.type===setState){return[message.state];}else{constchange=program.update(message,state);devTools.send(message,change[0]);returnchange;}}};}
I know you have your own dedicated devtool for Raj, but this extension is pretty rad - what with the time-travel feature and all, which works with this little HOP attached. All the cool kids are using it ;-)
The text was updated successfully, but these errors were encountered:
I've successfully connected Raj to the Redux DevTools extension for Chrome.
I know you have your own dedicated devtool for Raj, but this extension is pretty rad - what with the time-travel feature and all, which works with this little HOP attached. All the cool kids are using it ;-)
The text was updated successfully, but these errors were encountered: