New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clean-redux

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-redux

Toolkit for implementing clean architecture using Redux

  • 0.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

📐 Toolkit for implementing clean architecture using Redux 📐
🔩 Focuses on achieving great type inference 🔩
🎯 Easy to navigate, easy to maintain 🎯

This repo aims to be a guide on how to implement Clean Architecture using @reduxjs/toolkit.
The NPM library clean-redux is a set of utils that you will need to achieve perfect type inference.

Benefit

The provided utilities internally leverage TypeScript's template literal types, it makes the developer experience truly next level. Implementing the approach exposed here enables large-scale app to remain maintainable for years even in the context of frequent developer turnover.

This is the kind of experience you get from the UI side when used with React.

https://user-images.githubusercontent.com/6702424/146718518-41cddbe9-bcf6-4b19-bc8e-25efe9085004.mp4

Note that there is no need to explicitly call dispatch and the result of the selector are automatically wrapped into object so they can be destructured with the correct name.

Install / Import

$ yarn add @reduxjs/toolkit clean-redux

Documentation

To see how the tool is actually meant to be used refer to the canonical clean architecture setup located in src/test/demo-app.

To understand what the functions exposed by clean-redux do in detail, please refer to the compile time unit tests they worth more than a thousand word.

A production example

Onyxia: A data science-oriented container launcher.

Start the demo app

git clone https://github.com/garronej/clean-redux
cd clean-redux
yarn
yarn build
yarn start-demo-app

FAQs

Package last updated on 21 Dec 2021

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