Skip to content

Commit

Permalink
refactor: ComponentStore ベースの ArticleStore を 削除
Browse files Browse the repository at this point in the history
  • Loading branch information
kasaharu committed Sep 17, 2024
1 parent 96ea3e4 commit a1e53ca
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/app/features/blog/containers/articles/article.store.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
import { Injectable } from '@angular/core';
import { ComponentStore } from '@ngrx/component-store';
import { patchState, signalStore, withMethods, withState } from '@ngrx/signals';
import { Observable } from 'rxjs';
import { Article, Feed } from '../../domain/feed';

@Injectable()
export class DeprecatedArticleStore extends ComponentStore<Feed> {
constructor() {
super({ items: [] });
}

readonly blogItems$: Observable<Article[]> = this.select((state) => state.items);

readonly setFeed = this.updater((_, feed: Feed) => {
return { items: feed.items };
});
}

type ArticleState = {
items: Article[];
};
Expand Down

0 comments on commit a1e53ca

Please sign in to comment.