Need advice about which tool to choose?Ask the StackShare community!

ng-state

4
11
+ 1
0
redux-thunk

725
182
+ 1
6
Add tool

redux-thunk vs ng-state: What are the differences?

Developers describe redux-thunk as "Thunk middleware for Redux". Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters. On the other hand, ng-state is detailed as "State management library for Angular applications". RxJS and ImmutableJs powered nested state management for Angular 2+ applications inspired by @ngrx/store. It is simple, fast, reliable with no boilerplate.

redux-thunk and ng-state can be categorized as "State Management Library" tools.

redux-thunk is an open source tool with 13.9K GitHub stars and 784 GitHub forks. Here's a link to redux-thunk's open source repository on GitHub.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of ng-state
Pros of redux-thunk
    Be the first to leave a pro
    • 6
      Easy

    Sign up to add or upvote prosMake informed product decisions

    What is ng-state?

    RxJS and ImmutableJs powered nested state management for Angular 2+ applications inspired by @ngrx/store. It is simple, fast, reliable with no boilerplate.

    What is redux-thunk?

    Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters.

    Need advice about which tool to choose?Ask the StackShare community!

    Jobs that mention ng-state and redux-thunk as a desired skillset
    What companies use ng-state?
    What companies use redux-thunk?
    See which teams inside your own company are using ng-state or redux-thunk.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with ng-state?
    What tools integrate with redux-thunk?
    What are some alternatives to ng-state and redux-thunk?
    Redux
    It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. t provides a great experience, such as live code editing combined with a time traveling debugger.
    vuex
    Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official devtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
    MobX
    MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). React and MobX together are a powerful combination. React renders the application state by providing mechanisms to translate it into a tree of renderable components. MobX provides the mechanism to store and update the application state that React then uses.
    redux-saga
    An alternative side effect model for Redux apps
    reselect
    Simple “selector” library for Redux (and others) inspired by getters in NuclearJS, subscriptions in re-frame and this proposal from speedskater.
    See all alternatives