Comments (7)
@danielpiedra - I'm actually working on a forms solution, should have something early next week.
from ngrx-actions.
Interested to move to this util class but this is a common use case in our codebase. Following along for status.
from ngrx-actions.
Done in 1.1.0
from ngrx-actions.
Hi, I have a question that is related to this. I am trying to get ngrx-actions and ngrx-forms working together. For ngrx-forms validation, the validation functions are triggered on any action (no action type check), like:
export function appReducer(state = initialState, action: Action): AppState {
const myForm = myFormReducer(state.myForm, action);
if (myForm !== state.myForm) {
state = { ...state, myForm };
}
switch (action.type) {
case 'some action type':
// modify state
return state;
default: {
return state;
}
}
}
I wonder if there's a way to implement this in the @Store
, since @Action
has to be given ActionTypes to fire up.
from ngrx-actions.
so in the end importing the Action classes from ngrx-forms and using spread operator to pass them to @Action
method worked fine.
from ngrx-actions.
@amcdnl awesome news, can't wait to check it out. I'm still on the early stages of setting up a current project so refactoring won't be a headache :)
from ngrx-actions.
@danielpiedra - checkout https://github.com/amcdnl/ngrx-form
from ngrx-actions.
Related Issues (20)
- Action options HOT 1
- Store DI
- Example Stored + Entity HOT 3
- Return Store initial state to be used in the tests
- Can it be used with redux? HOT 1
- New @Effect decorator HOT 3
- @Action - samples in the README and articles are incorrect?
- NgrxActionsModule.forFeature - not working?
- @Dispatch
- Question: Unit testing with the @Select decorator
- RxJs 6 - Property 'pipe' does not exist in type 'Actions<Action>' HOT 1
- feat: support angular v6
- Question: any ETA for a ng6 compatible version? HOT 5
- Cannot find module 'ngrx-actions' HOT 8
- NgrxActionsModule nested reducers
- Publish 4.0.1 to NPM?
- Unexpected state mutation in reducers
- @Effect() decorator does not work HOT 1
- NGRX 7.x Upgrade HOT 2
- PLEASE DELETE. CREATED BY MISTAKE :D
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngrx-actions.