Resources for learning web design & front-end development:
ONLINE
Design
| import {call, put, take, fork} from 'redux-saga/effects' | |
| import {END} from 'redux-saga' | |
| import CategoryActions, {CategoryTypes} from '../Redux/CategoryRedux' | |
| // attempts to fetch category | |
| export function* fetchCategoryServer (api) { | |
| let action = yield take(CategoryTypes.CATEGORY_SERVER) | |
| // check when it stopped | |
| while (action !== END) { | |
| yield fork(fetchCategoryAPI, api) |
| // hide HMR and GET | |
| /^((?!HMR|GET).)*$/ | |
| // Hide Warnings | |
| /^((?!warning).)*$/ | |
| // Hide all | |
| /^((?!warning|HMR|GET).)*$/ | |
| // wrap regex in / / if using Canary |
Resources for learning web design & front-end development:
ONLINE
Design