Skip to content

MealPlanComponent list now leverages RxJS#1

Open
AlDrag wants to merge 1 commit intoddashwood:masterfrom
AlDrag:meal-plan-infinite-scrolling-with-rxjs
Open

MealPlanComponent list now leverages RxJS#1
AlDrag wants to merge 1 commit intoddashwood:masterfrom
AlDrag:meal-plan-infinite-scrolling-with-rxjs

Conversation

@AlDrag
Copy link

@AlDrag AlDrag commented Aug 30, 2023

Created a new MealPlanListDatasource service. This is responsible for handling the data for the meal plan list.

It leverages a BehaviorSubject for its data handling. It's still a bit imperative it in its design, but that does make it easy to follow. Going full declarative is possible by leveraging more complicated operators from RxJS, but it doesn't feel worth it.

This could probably still be improved by storing the data as a map to allow more efficient updates, but this should be fine for now.

NOTE: this is completely untested.

Feel free to ask any questions 😄

Created a new MealPlanListDatasource service. This is responsible for
handling the data for the meal plan list.

It leverages a BehaviorSubject for its data handling. It's still a bit
imperative it in its design, but that does make it easy to follow. Going
full declarative is possible by leveraging more complicated operators
from RxJS, but it doesn't feel worth it.

This could probably still be improved by storing the data as a map to
allow more efficient updates, but this should be fine for now.

NOTE: this is completely untested.
@AlDrag AlDrag force-pushed the meal-plan-infinite-scrolling-with-rxjs branch from 4faae9a to 5d33a36 Compare August 30, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant