CoRecursive: Coding Stories cover image

Tech Talk: The Reason For Types with Jared Forsyth on ReasonML and Javascript

CoRecursive: Coding Stories

00:00

Java Script - JavaScript Flow - Is There a Loadable Data Type?

The biggest or the most important some type that we have in our code base is our loadable data type. This is for anything we fetch from the network that we're putting in Redux. Having a some type that enforces, there are three disjoint states. One of them is loaded with error and one of them isloaded with data. You don't have to worry that somebody's going to accidentally set both data and error to something. Like how do you render that? It's just impossible.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app