Hi,
Query ListProducts
Mutation UpdateProduct
Subscription onUpdateProducts
Schema is created automatically.
React, JS, node.js
with useState
I update one product on the list, subscribe to that update and then put the response of the subscription into the state.
After that only the updated item is displayed, the others are not part of the update.
What is the best practice to update one item in a list, subscribe to that update and in the end display the fully updated array list?