-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twice dispatch an async action creator with different params #790
Comments
Your selector is the same so the data is the same. I don't understand your Why could you not ask on stackoverflow? |
Please provide the whole project source code, a list of steps to reproduce the issue, the expected, and the actual result. |
@wmertens Because, I should to wait for a 2 days to ask a question... project source code: https://github.com/dontlemmedown/isomorphic
if I got you correctly, then
I want to receive different data in headers (navigation) and TopicPage from fetchTopics action creator. But now, when I dispatch the action Hope you got my meaning and English as well =) |
The problem is with your reducer. You're using splats to merge, but they https://github.com/dontlemmedown/isomorphic/blob/master/src/reducers/topics.js#L17 I think you want return { ...state, isFetching: false, data: {state.data, ...action.response. (not tested) |
BTW, with redux-devtools you would have seen this :) |
@wmertens, it didnt works, cuz there's an error Thanks, |
Oops that should have been |
@wmertens, thanks for trying to help me and I apologize for molestation, but could you explain me - how should it work, because I've got the same problem https://github.com/dontlemmedown/isomorphic/commit/9bbe5a9bad54b5602cb7eec83cbf33f6b2ac2bb8 this is console.log of localhost:3000/topics/11
probably the best way to use 2 action creators? |
I'll close this, as we're starting to adopt the policy of not allowing questions in issues (#838). |
i'm pretty sure that is my mistake, but...
for example:
I have 2 dummy
Root
,TopicPage
, and one dumbHeader
which render received data as navigation.But data in
Root
andTopicPage
the same and receive it as random...https://www.youtube.com/watch?v=_hSRKY-5efo&feature=youtu.be
Sorry for my English and low skill, and for leave the question here, I couldn't ask it on stack overflow..
The text was updated successfully, but these errors were encountered: