Open buzzdead opened 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.
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.
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.