Skip to content

Instantly share code, notes, and snippets.

View nick-bull's full-sized avatar

nick-bull

View GitHub Profile
@gilankpam
gilankpam / redux-request-success-failure.js
Last active May 17, 2022 14:04
redux-request-success-failure.js
function reduxHelper (actionName, fn) {
if (typeof actionName !== 'string') {
throw new Error('actionName must be a string')
}
if (typeof fn !== 'function') {
throw new Error('fn must be a function')
}
const actionNameUpper = actionName.toUpperCase()
const actionRequest = actionNameUpper + '_REQUEST'
const actionSuccess = actionNameUpper + '_SUCCESS'
@joymon
joymon / scientific_debugging_template.md
Last active May 21, 2024 19:17
Scientific debugging template to track progress

Status - [Open/Closed]

Overview

  • Reported on - [Date]
  • Last updated on - [Date]
  • Environment - [All/Staging/Prod/QA/Dev]
  • Investigators
    • Person 1
    • Person 2

Description