Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
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 (
);
export const initStore = (state = initialState) =>
createStore(
reducers,
{ ...state },
process.env.NODE_ENV === 'development'
? composeWithDevTools(applyMiddleware(thunkMiddleware))
: applyMiddleware(thunkMiddleware, LogRocket.reduxMiddleware()),
);