Redux: Redux action type is PROBE_UNKNOWN_ACTION

Created on 16 Feb 2018  ·  2Comments  ·  Source: reduxjs/redux

Hi everyone

First all, I apology for posting this issue over here, I have took a look at Stack Overflow, but
nobody was able to gave right answer.

I have added debug in my code, and I saw the following warning:
https://files.slack.com/files-pri/T6J4R5YMU-F98MV7WS0/redux.png

I think it should return only INIT, but the Redux is returning PROBE_KNOW_ACTION too without a reason.

Reducer/index.js
`const articles = (state = {}, action) => {
console.log(action)
switch(action.type) {
case GET_ARTICLES:
return {
...state,
data: action.articles
}
default:
return {
...state
}
}
}

export default combineReducers({
articles
})`

I know INIT is normal behavior, but if I added more reducer, it will appear duplicate warnings.
I also took a look Redux core:
https://github.com/reactjs/redux/blob/master/src/utils/actionTypes.js
I have cloned some example project in Redux, and I also saw the same problem.

My only dispatch:
const mapDispatchToProps = dispatch => { return { fetchArticles: () => dispatch(fetchArticles()) } }

Please, Anyone would advice me about the problem above?

Thank you so much

Most helpful comment

For reference, it's part of the combineReducers initialization behavior.

All 2 comments

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!

For reference, it's part of the combineReducers initialization behavior.

Was this page helpful?
0 / 5 - 0 ratings