-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
Description
Here's my code for _saveCart
_saveCart() { this._onItemsUpdated(); return fetch(${API_ENDPOINT}api/cart/items, { method: 'PUT', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ data: this.items }) }).then(res => res.json()) .then(res => res.data) .catch(error => console.error(error)); }
PUT request is successful. However, as I refresh the page, data is gone.
Where should I look for to add missing pieces to work it around?