Skip to content

Instantly share code, notes, and snippets.

@pesakitan22
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
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
/^((?!HMR|GET).)*$/
// Hide Warnings
/^((?!warning).)*$/
// Hide all
/^((?!warning|HMR|GET).)*$/
// wrap regex in / / if using Canary
@nathansmith
nathansmith / web-design-development-learning-resources.md
Last active October 12, 2024 17:08
Resources for learning web design & front-end development