Skip to content

Commit

Permalink
fix(Effects): Remove toPayload utility function (#738)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The utility function `toPayload`, deprecated in @ngrx/effects v4.0, has been removed.

   Before:
    
    ```ts
    import { toPayload } from '@ngrx/effects';
    
    actions$.ofType('SOME_ACTION').map(toPayload);
    ```

    After:

    ```ts
    actions$.ofType('SOME_ACTION').map((action: SomeActionWithPayload) => action.payload)
    ```
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Jan 22, 2018
1 parent 317fb94 commit b390ef5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion modules/effects/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ export { Actions, ofType } from './actions';
export { EffectsModule } from './effects_module';
export { EffectSources } from './effect_sources';
export { OnRunEffects } from './on_run_effects';
export { toPayload } from './util';
export { EffectNotification } from './effect_notification';
export { ROOT_EFFECTS_INIT } from './effects_root_module';
8 changes: 0 additions & 8 deletions modules/effects/src/util.ts

This file was deleted.

0 comments on commit b390ef5

Please sign in to comment.