How to use the logrocket.reduxMiddleware function in logrocket

To help you get started, we’ve selected a few logrocket examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oughtinc / mosaic / client / src / App.tsx View on Github external
);

LogRocket.init(appConfig.logrocket_id);
const environment = process.env.NODE_ENV || "development"; // "development" or "production"
console.log("Client environment: ", process.env.NODE_ENV);
LogRocket.track(environment);

const store = createStore(
  combineReducers(
    {
      blocks: blockReducer,
      blockEditor: blockEditorReducer,
    } as any
  ),
  composeWithDevTools(applyMiddleware(thunk, LogRocket.reduxMiddleware()))
);

class App extends React.Component {

  public render() {
    return (
      
        
          
            
              
            
          
        
      
    );
github OperationCode / front-end / store / store.js View on Github external
export const initStore = (state = initialState) =>
  createStore(
    reducers,
    { ...state },
    process.env.NODE_ENV === 'development'
      ? composeWithDevTools(applyMiddleware(thunkMiddleware))
      : applyMiddleware(thunkMiddleware, LogRocket.reduxMiddleware()),
  );

logrocket

JavaScript SDK for [LogRocket](https://logrocket.com/)

MIT
Latest version published 4 months ago

Package Health Score

65 / 100
Full package analysis