Best practices for state management and fetching data
So here one of my useQuery functions for the Quote component.
So as I understand it,
selectedPackaging will be populated with initialSelectedPackaging if this function is not enabled. And then I just update that state as the user fills in the packaging fields with this code: queryClient.setQueryData( ['quotePackaging', {quoteID: editingQuoteID}],...Am I understanding that all correctly?