Better TypeScript Types for Redux Saga’s “Call” Effect

One of the challenges of working with Redux Saga in TypeScript is the heavy and unconventional use of generator functions. This feature from JavaScript does some amazing heavy lifting in enabling the library to be as powerful as it is, but it just doesn’t play well with TypeScript’s capabilities. There’s currently no way to even […]

React Contexts are Dynamic Scope

I’ve worked with a few teams who found React’s Contexts somewhat difficult to understand at first. This started me thinking about how best to explain them. What I realized is that Contexts are essentially nothing more than dynamic scope. What’s Dynamic Scope? As a programmer, you’re most likely very comfortable with lexical scoping, even if […]