ember-redux | Predictable state management for ember apps | Addon library
kandi X-RAY | ember-redux Summary
kandi X-RAY | ember-redux Summary
Predictable state management for ember apps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ember-redux
ember-redux Key Features
ember-redux Examples and Code Snippets
Community Discussions
Trending Discussions on ember-redux
QUESTION
We are evaluating tech stack for a customer portal project. While I have a (biased) secret love connection towards ember, I am almost convinced to use it for the project.
However, coming from a react.js background, I would like to ask about store (redux) and Ember services.
- Are Ember services considered source of truth? Can they be used instead of ember-redux?
- I have seen ember-redux addon. Seems good. However, whats the point if we have Ember.js services?
- Any use-case when ember-redux can be preferred over Ember services?
ANSWER
Answered 2018-Jun-11 at 15:25From the guides:
A Service is an Ember object that lives for the duration of the application, and can be made available in different parts of your application.
An Ember service doesn't provide any functionality out of the box. It's just an empty, long-lived object. You can put whatever you want in there: a shopping cart, a datastore, an activity feed, etc.
Redux—and by extension, ember-redux—is a pattern (and boilerplate) for implementing predictable state in your app. You can add states and reducers to any Ember object, including a service.
Comparing an Ember service and ember-redux is a bit like comparing a garage to a blueprint for building cars. You shouldn't be trying to decide whether to use one or the other. Instead, you should consider whether use that particular blueprint to build your cars, and then whether to store those cars in the garage or somewhere else.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ember-redux
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page