Skip to content

Instantly share code, notes, and snippets.

pesakitan22 / CategorySagas.js
Last active February 19, 2021 18:45
Redux-Saga for next.js
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)
jkusachi / HMR Regex
Last active September 13, 2017 19:47
help filter out noise in chrome dev tools when using hot module reload n stuff
// hide HMR and GET
// Hide Warnings
// Hide all
// wrap regex in / / if using Canary
nathansmith /
Last active May 29, 2024 12:25
Resources for learning web design & front-end development