Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sagamatron

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sagamatron

Take the boilerplate out of your React/Redux/Saga stack using the magic of TypeScript! 🧙

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

SAGAMATRON

npm CircleCI Known Vulnerabilities type-coverage

Take the boilerplate out of your React/Redux/Saga stack using the magic of TypeScript! 🧙

SAGAMATRON converting side effects into happiness

Summary

A project to reduce the amount of boilerplate that needs to be written for redux/redux-saga based applications.

Developed for an Agile Digital "Fedex Day".

Motivation

Here at Agile Digital we are big on using Redux and Sagas to manage state and side effects.

However, the benefits of redux-saga come with a downside. There is a lot of boilerplate code that needs to be written to support the patterns enforced by redux and redux-saga.

This can discourage developers from using these patterns, and can sometimes make simple features to take extra time to implement.

In newer versions of React, new forms of state management have been introduced in the form of hooks. While they have their rightful place in a React application, for example when managing temporary UI state, their simplicity can tempt developers to manage more and more of the application's state using them. Initially this trade off might seem successful due to faster cycle times and a perceived reduction in complexity but their are hidden costs that will appear later in the lifecycle of a project.

To try and avoid this trend, we decided to use the power of TypeScript to reduce the boilerplate of redux and redux-saga.

BEWARE THE HOOKS

Example

The unit tests are a good example of how it all works:

We also have a basic project that demonstrates how sagamatron integrates with everything: https://github.com/agiledigital/react-redux-saga-sagamatron

Keywords

FAQs

Package last updated on 09 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc