ajax-tutorial | A replacement for the sadly defunct BBC Codebar tutorial | Bot library
kandi X-RAY | ajax-tutorial Summary
kandi X-RAY | ajax-tutorial Summary
What we're going to build: Meteoropolis is a small application that tells you the current weather for a city from OpenWeatherMap and displays images relevant to that weather (sadly not always the location!) from Unsplash. A slideshow giving a overview can be seen here
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ajax-tutorial
ajax-tutorial Key Features
ajax-tutorial Examples and Code Snippets
Community Discussions
Trending Discussions on ajax-tutorial
QUESTION
I am trying to use redux-saga to call my API and passing it a parameter. I am using redux-logger
and console.log()
to debug. But it seems that my saga doesn't go call the API for some reason.
Here is the console log of the states... as you can see the apiMsg
doesnt change, however I have it change for each action.
I think I am going wrong somewhere in the actions, reducer or the component. Or else I am calling the API wrong in the Saga.
This is my code
api.js
...ANSWER
Answered 2018-Jul-30 at 17:38After some time with a lot of debugging, I have figured the problem.
When I first started creating the application, I got the following error...
[...effects] has been deprecated in favor of all([...effects]), please update your code
As the yield all [...]
was deprecated, I changed my code without taking it into consideration, I was happy the error went, but didn't realize how much of an impact it would have on my application.
(wrong) saga/index.js
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ajax-tutorial
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page