Skip to content

Commit

Permalink
feat(component): remove PushModule
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

The `PushModule` is deprecated in favor of the standalone `PushPipe`.

BEFORE:

```ts
import { PushModule } from '@ngrx/component';

@NgModule({
  imports: [
    // ... other imports
    PushModule,
  ],
})
export class MyFeatureModule {}
```

AFTER:

```ts
import { Component } from '@angular/core';
import { PushPipe } from '@ngrx/component';

@component({
  // ... other metadata
  standalone: true,
  imports: [
    // ... other imports
    PushPipe,
  ],
})
export class MyStandaloneComponent {}
```
  • Loading branch information
timdeschryver authored and brandonroberts committed Oct 24, 2023
1 parent 82e8381 commit 7316d1a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
18 changes: 0 additions & 18 deletions modules/component/spec/push/push.module.spec.ts

This file was deleted.

1 change: 0 additions & 1 deletion modules/component/src/index.ts
Expand Up @@ -2,4 +2,3 @@ export { RenderScheduler } from './core/render-scheduler';
export { LetDirective } from './let/let.directive';
export { LetModule } from './let/let.module';
export { PushPipe } from './push/push.pipe';
export { PushModule } from './push/push.module';
11 changes: 0 additions & 11 deletions modules/component/src/push/push.module.ts

This file was deleted.

2 changes: 0 additions & 2 deletions modules/component/src/push/push.pipe.ts
Expand Up @@ -7,8 +7,6 @@ import { createRenderEventManager } from '../core/render-event/manager';
type PushPipeResult<PO> = PotentialObservableResult<PO, undefined>;

/**
* @ngModule PushModule
*
* @description
*
* The `ngrxPush` pipe serves as a drop-in replacement for the `async` pipe.
Expand Down

0 comments on commit 7316d1a

Please sign in to comment.