React / Redux issue with middleware / thunk











up vote
1
down vote

favorite












I have a large react app that works great on edge, chrome, firefox, safari 11+ etc, however I am facing a strange issue on Safari 10 and IE11. The action/reducer for for login just does not seem to be called in the app in these two browsers. On login screen, button click works, but as soon as the dispatch is called for login action, it just goes into a void, there is no error in console, no network request. I have tried many combinations of babel polyfills, presets, transforms, and after much effort it has come down to the conclusion that it has something to do with the redux-thunk. SInce login never works, I am assuming any other network requests in app will not be working either.



Anyone encountered the same issue and found a solution, would be grateful for your help.



Thanks










share|improve this question




















  • 1




    The problem cannot be solved without stackoverflow.com/help/mcve . The question is off-topic because it's too unspecific. There may be off-topic questions that contain clues to solve them with educated guess, but I believe that this isn't one of them. dispatch is called for login action, it just goes into a void - use a debugger, only you can do this. it has something to do with the redux-thunk - redux-thunk is dead simple so cannot be directly responsible for misbehaviour.
    – estus
    yesterday












  • Wow. I tried my best to debug for a week or so, and when I failed, I posted this as an issue in the project github issue tracker, thinking someone in there might have encountered same issue and would help. They closed it and pushed me out saying its not a support system. Go ask stackoverflow. Now your reponse is just perfect. Makes me think why the world is just a wonderful place. Thank you @estus
    – Samnan
    23 hours ago








  • 1




    Makes me think why the world is just a wonderful place - possibly because everyone asks constructive questions without being sarcastic? SO is not a support system. It's Q&A. I guess that's not your first day on SO so you already know how to ask questions. In case you don't, stackoverflow.com/help/how-to-ask . MCVE is required by SO rules for very good reasons. In case you're too busy to provide persons who could help you with necessary information, there are paid services where an expert can save you from some hassle and use remote desktop to debug your local project.
    – estus
    23 hours ago










  • Believe or not, my comment was intended as constructive. Glad to see that it helped you to improve the question.
    – estus
    20 hours ago










  • @Samnan I'll have to agree with the previous commenter, it is difficult to help you without seeing any of your code. There could be dozens of different reasons, and I don't think it's reasonable to expect people to put in time to answer your question if you're not showing a little effort as the asker. I'll take a blind guess: maybe your action code has a problem, could you share that part?
    – Laurent S
    19 hours ago















up vote
1
down vote

favorite












I have a large react app that works great on edge, chrome, firefox, safari 11+ etc, however I am facing a strange issue on Safari 10 and IE11. The action/reducer for for login just does not seem to be called in the app in these two browsers. On login screen, button click works, but as soon as the dispatch is called for login action, it just goes into a void, there is no error in console, no network request. I have tried many combinations of babel polyfills, presets, transforms, and after much effort it has come down to the conclusion that it has something to do with the redux-thunk. SInce login never works, I am assuming any other network requests in app will not be working either.



Anyone encountered the same issue and found a solution, would be grateful for your help.



Thanks










share|improve this question




















  • 1




    The problem cannot be solved without stackoverflow.com/help/mcve . The question is off-topic because it's too unspecific. There may be off-topic questions that contain clues to solve them with educated guess, but I believe that this isn't one of them. dispatch is called for login action, it just goes into a void - use a debugger, only you can do this. it has something to do with the redux-thunk - redux-thunk is dead simple so cannot be directly responsible for misbehaviour.
    – estus
    yesterday












  • Wow. I tried my best to debug for a week or so, and when I failed, I posted this as an issue in the project github issue tracker, thinking someone in there might have encountered same issue and would help. They closed it and pushed me out saying its not a support system. Go ask stackoverflow. Now your reponse is just perfect. Makes me think why the world is just a wonderful place. Thank you @estus
    – Samnan
    23 hours ago








  • 1




    Makes me think why the world is just a wonderful place - possibly because everyone asks constructive questions without being sarcastic? SO is not a support system. It's Q&A. I guess that's not your first day on SO so you already know how to ask questions. In case you don't, stackoverflow.com/help/how-to-ask . MCVE is required by SO rules for very good reasons. In case you're too busy to provide persons who could help you with necessary information, there are paid services where an expert can save you from some hassle and use remote desktop to debug your local project.
    – estus
    23 hours ago










  • Believe or not, my comment was intended as constructive. Glad to see that it helped you to improve the question.
    – estus
    20 hours ago










  • @Samnan I'll have to agree with the previous commenter, it is difficult to help you without seeing any of your code. There could be dozens of different reasons, and I don't think it's reasonable to expect people to put in time to answer your question if you're not showing a little effort as the asker. I'll take a blind guess: maybe your action code has a problem, could you share that part?
    – Laurent S
    19 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a large react app that works great on edge, chrome, firefox, safari 11+ etc, however I am facing a strange issue on Safari 10 and IE11. The action/reducer for for login just does not seem to be called in the app in these two browsers. On login screen, button click works, but as soon as the dispatch is called for login action, it just goes into a void, there is no error in console, no network request. I have tried many combinations of babel polyfills, presets, transforms, and after much effort it has come down to the conclusion that it has something to do with the redux-thunk. SInce login never works, I am assuming any other network requests in app will not be working either.



Anyone encountered the same issue and found a solution, would be grateful for your help.



Thanks










share|improve this question















I have a large react app that works great on edge, chrome, firefox, safari 11+ etc, however I am facing a strange issue on Safari 10 and IE11. The action/reducer for for login just does not seem to be called in the app in these two browsers. On login screen, button click works, but as soon as the dispatch is called for login action, it just goes into a void, there is no error in console, no network request. I have tried many combinations of babel polyfills, presets, transforms, and after much effort it has come down to the conclusion that it has something to do with the redux-thunk. SInce login never works, I am assuming any other network requests in app will not be working either.



Anyone encountered the same issue and found a solution, would be grateful for your help.



Thanks







reactjs react-redux redux-api-middleware






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 20 hours ago

























asked yesterday









Samnan

5181413




5181413








  • 1




    The problem cannot be solved without stackoverflow.com/help/mcve . The question is off-topic because it's too unspecific. There may be off-topic questions that contain clues to solve them with educated guess, but I believe that this isn't one of them. dispatch is called for login action, it just goes into a void - use a debugger, only you can do this. it has something to do with the redux-thunk - redux-thunk is dead simple so cannot be directly responsible for misbehaviour.
    – estus
    yesterday












  • Wow. I tried my best to debug for a week or so, and when I failed, I posted this as an issue in the project github issue tracker, thinking someone in there might have encountered same issue and would help. They closed it and pushed me out saying its not a support system. Go ask stackoverflow. Now your reponse is just perfect. Makes me think why the world is just a wonderful place. Thank you @estus
    – Samnan
    23 hours ago








  • 1




    Makes me think why the world is just a wonderful place - possibly because everyone asks constructive questions without being sarcastic? SO is not a support system. It's Q&A. I guess that's not your first day on SO so you already know how to ask questions. In case you don't, stackoverflow.com/help/how-to-ask . MCVE is required by SO rules for very good reasons. In case you're too busy to provide persons who could help you with necessary information, there are paid services where an expert can save you from some hassle and use remote desktop to debug your local project.
    – estus
    23 hours ago










  • Believe or not, my comment was intended as constructive. Glad to see that it helped you to improve the question.
    – estus
    20 hours ago










  • @Samnan I'll have to agree with the previous commenter, it is difficult to help you without seeing any of your code. There could be dozens of different reasons, and I don't think it's reasonable to expect people to put in time to answer your question if you're not showing a little effort as the asker. I'll take a blind guess: maybe your action code has a problem, could you share that part?
    – Laurent S
    19 hours ago














  • 1




    The problem cannot be solved without stackoverflow.com/help/mcve . The question is off-topic because it's too unspecific. There may be off-topic questions that contain clues to solve them with educated guess, but I believe that this isn't one of them. dispatch is called for login action, it just goes into a void - use a debugger, only you can do this. it has something to do with the redux-thunk - redux-thunk is dead simple so cannot be directly responsible for misbehaviour.
    – estus
    yesterday












  • Wow. I tried my best to debug for a week or so, and when I failed, I posted this as an issue in the project github issue tracker, thinking someone in there might have encountered same issue and would help. They closed it and pushed me out saying its not a support system. Go ask stackoverflow. Now your reponse is just perfect. Makes me think why the world is just a wonderful place. Thank you @estus
    – Samnan
    23 hours ago








  • 1




    Makes me think why the world is just a wonderful place - possibly because everyone asks constructive questions without being sarcastic? SO is not a support system. It's Q&A. I guess that's not your first day on SO so you already know how to ask questions. In case you don't, stackoverflow.com/help/how-to-ask . MCVE is required by SO rules for very good reasons. In case you're too busy to provide persons who could help you with necessary information, there are paid services where an expert can save you from some hassle and use remote desktop to debug your local project.
    – estus
    23 hours ago










  • Believe or not, my comment was intended as constructive. Glad to see that it helped you to improve the question.
    – estus
    20 hours ago










  • @Samnan I'll have to agree with the previous commenter, it is difficult to help you without seeing any of your code. There could be dozens of different reasons, and I don't think it's reasonable to expect people to put in time to answer your question if you're not showing a little effort as the asker. I'll take a blind guess: maybe your action code has a problem, could you share that part?
    – Laurent S
    19 hours ago








1




1




The problem cannot be solved without stackoverflow.com/help/mcve . The question is off-topic because it's too unspecific. There may be off-topic questions that contain clues to solve them with educated guess, but I believe that this isn't one of them. dispatch is called for login action, it just goes into a void - use a debugger, only you can do this. it has something to do with the redux-thunk - redux-thunk is dead simple so cannot be directly responsible for misbehaviour.
– estus
yesterday






The problem cannot be solved without stackoverflow.com/help/mcve . The question is off-topic because it's too unspecific. There may be off-topic questions that contain clues to solve them with educated guess, but I believe that this isn't one of them. dispatch is called for login action, it just goes into a void - use a debugger, only you can do this. it has something to do with the redux-thunk - redux-thunk is dead simple so cannot be directly responsible for misbehaviour.
– estus
yesterday














Wow. I tried my best to debug for a week or so, and when I failed, I posted this as an issue in the project github issue tracker, thinking someone in there might have encountered same issue and would help. They closed it and pushed me out saying its not a support system. Go ask stackoverflow. Now your reponse is just perfect. Makes me think why the world is just a wonderful place. Thank you @estus
– Samnan
23 hours ago






Wow. I tried my best to debug for a week or so, and when I failed, I posted this as an issue in the project github issue tracker, thinking someone in there might have encountered same issue and would help. They closed it and pushed me out saying its not a support system. Go ask stackoverflow. Now your reponse is just perfect. Makes me think why the world is just a wonderful place. Thank you @estus
– Samnan
23 hours ago






1




1




Makes me think why the world is just a wonderful place - possibly because everyone asks constructive questions without being sarcastic? SO is not a support system. It's Q&A. I guess that's not your first day on SO so you already know how to ask questions. In case you don't, stackoverflow.com/help/how-to-ask . MCVE is required by SO rules for very good reasons. In case you're too busy to provide persons who could help you with necessary information, there are paid services where an expert can save you from some hassle and use remote desktop to debug your local project.
– estus
23 hours ago




Makes me think why the world is just a wonderful place - possibly because everyone asks constructive questions without being sarcastic? SO is not a support system. It's Q&A. I guess that's not your first day on SO so you already know how to ask questions. In case you don't, stackoverflow.com/help/how-to-ask . MCVE is required by SO rules for very good reasons. In case you're too busy to provide persons who could help you with necessary information, there are paid services where an expert can save you from some hassle and use remote desktop to debug your local project.
– estus
23 hours ago












Believe or not, my comment was intended as constructive. Glad to see that it helped you to improve the question.
– estus
20 hours ago




Believe or not, my comment was intended as constructive. Glad to see that it helped you to improve the question.
– estus
20 hours ago












@Samnan I'll have to agree with the previous commenter, it is difficult to help you without seeing any of your code. There could be dozens of different reasons, and I don't think it's reasonable to expect people to put in time to answer your question if you're not showing a little effort as the asker. I'll take a blind guess: maybe your action code has a problem, could you share that part?
– Laurent S
19 hours ago




@Samnan I'll have to agree with the previous commenter, it is difficult to help you without seeing any of your code. There could be dozens of different reasons, and I don't think it's reasonable to expect people to put in time to answer your question if you're not showing a little effort as the asker. I'll take a blind guess: maybe your action code has a problem, could you share that part?
– Laurent S
19 hours ago

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416675%2freact-redux-issue-with-middleware-thunk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416675%2freact-redux-issue-with-middleware-thunk%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

Alexandru Averescu

Trompette piccolo