Skip to content

Commit b390ef5

Browse files
brandonrobertsMikeRyanDev
authored andcommitted
fix(Effects): Remove toPayload utility function (#738)
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) ```
1 parent 317fb94 commit b390ef5

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

modules/effects/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ export { Actions, ofType } from './actions';
88
export { EffectsModule } from './effects_module';
99
export { EffectSources } from './effect_sources';
1010
export { OnRunEffects } from './on_run_effects';
11-
export { toPayload } from './util';
1211
export { EffectNotification } from './effect_notification';
1312
export { ROOT_EFFECTS_INIT } from './effects_root_module';

modules/effects/src/util.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)