Skip to content

Commit

Permalink
fix(angular): ngrx effects generation (#4900)
Browse files Browse the repository at this point in the history
  • Loading branch information
Di-did-done committed Feb 25, 2021
1 parent 91002d4 commit 87f4836
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -8,7 +8,7 @@ import * as <%= className %>Actions from './<%= fileName %>.actions';
@Injectable()
export class <%= className %>Effects {
<% if (useDataPersistence) { %> init$ = createEffect(() => this.dataPersistence.fetch(<%= className %>Actions.init, {
run: (action: ReturnType<typeof <%= className %>Actions.init, state: <%= className %>Feature.<%= className %>PartialState) => {
run: (action: ReturnType<typeof <%= className %>Actions.init>, state: <%= className %>Feature.<%= className %>PartialState) => {
// Your custom service 'load' logic goes here. For now just return a success action...
return <%= className %>Actions.load<%= className %>Success({ <%= propertyName %>: [] });
},
Expand Down

0 comments on commit 87f4836

Please sign in to comment.