Category: redux

  • hooked

    React introduced hooks earlier this year. For the most part, I like them. They make code more readable, if sometimes a little cluttered, especially if you useState for single vars. And they looked like a the perfect solution for a setup I was working on: logic that used state in a containing component (the definition…

  • ready to fetch?

    Users double-click accidentally, ride the keyboard… one of the most elementary things you can do is throttle server requests for a specific call. Here’s my initial recipe. As a note, while my redux store is still fairly boilerplate heavy, I use redux-starter-kit to improve readability and lessen the pain of getting going. First, a little…

  • getting to know redux

    So we’ve got this big project at work. I’m trucking along la la la. And it becomes obvious — parts of our application will need a global state. A gal can only lift local state so far. We knew this. We knew that we’d probably go to reduxjs. So I sat down to do the…