buzzdead / ElKomplett

Nettbutikk
https://www.elkomplett.com
0 stars 0 forks source link

Entity Adapter #2

Open buzzdead opened 1 year ago

buzzdead commented 1 year ago

They way entity adapter works now is kind of redundant.

One adds \ removes a product to state, then fetches products from api.

Try to figure out a way to remove \ add a product to state without having to fetch the entire thing from the API again.

buzzdead commented 1 year ago

Could use the Id's for this, and search the API from that Id... Only problem is concurrency, if someone else deletes some products that's already in the list i.e... have to have some active cache in the api for this.