Skip to content

Commit

Permalink
fix(schematics): use fetch instead of optimistic update in the genera…
Browse files Browse the repository at this point in the history
…ted effect

Closes #100
  • Loading branch information
vsavkin committed Nov 17, 2017
1 parent d7fc5b5 commit c9759cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {LoadData, DataLoaded} from './<%= fileName %>.actions';

@Injectable()
export class <%= className %>Effects {
@Effect() loadData = this.d.pessimisticUpdate('LOAD_DATA', {
@Effect() loadData = this.d.fetch('LOAD_DATA', {
run: (a: LoadData, state: <%= className %>State) => {
return {
type: 'DATA_LOADED',
Expand Down

0 comments on commit c9759cc

Please sign in to comment.