After initial load every action seems to crash DevTools
See original GitHub issueI’m loading the devtools like this:
const store = createStore(reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
applyMiddleware(ReduxPromise, ReduxThunk));
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>, document.getElementById('root'));
Reducer:
export default function(state = INITIAL_STATE, action = {}) {
switch(action.type) {
case POPULATE_TABLE:
return { ...state, rows: action.payload.data };
case 'UPDATE_PAGE':
return { ...state, page: action.payload };
default:
return state;
}
}
Actions
export function fetchRows(page = 1) {
const url = `${rootUrl}/records`;
const request = axios.get(url);
return function(dispatch) {
dispatch(updatePage(page));
return request.then((data) => {
dispatch({
type: POPULATE_TABLE,
payload: data
});
}, (error) => {
console.error(error);
});
};
}
export function updatePage(page) {
return {
type: 'UPDATE_PAGE',
payload: page
};
}
Using Chrome 65, High Sierra, React 16.3, Redux 3.7
Any help appreciated!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Tips on solving 'DevTools was disconnected from the page ...
I was facing this problem on Google Chrome where DevTools was crashing every time on the same spot. On Chrome Canary the debugger...
Read more >441223 - Dev Tool crashes on each site with a Ohn Snap ...
I have the same issue - chrome://crashes doesn't show any crash reporting though. It happens constantly, debugging websites is now impossible.
Read more >Issues: Find and fix problems - Chrome Developers
Open DevTools. Click the Open Issues button next to Settings. Settings in the right corner of the action bar at the top. Depending...
Read more >Redux DevTools: Tips and tricks for faster debugging
It is very hard to predict or catch all possible bugs in our apps. We encounter a number of issues after our applications...
Read more >How to Effectively Inspect Network Activity in Chrome Dev Tools
We agreed on a debugging process after a brief conversation, but my initial suggestion relied too heavily on console.log() s, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m experiencing the same problem, but I think I see something wrong with your
createStore
call. I believe instead ofit should be
My configuration is this, though, and I don’t see what’s wrong with it:
This seems to be only a problem with Chromium. In Firefox it works okay.
@RossKinsella I published a build, which removes some recent changes, in #619. Let’s move the discussion there.