oops, tweak outfit data query slightly

This commit is contained in:
Emi Matchu 2021-01-05 06:43:33 +00:00
parent 95d94a4844
commit 12b357fad9

View file

@ -39,6 +39,7 @@ function useOutfitState() {
id
name
petAppearance {
id
species {
id
}
@ -64,6 +65,7 @@ function useOutfitState() {
skip: id == null,
returnPartialData: true,
onCompleted: (outfitData) => {
console.log(outfitData);
// This is only called once the _entire_ query loads, regardless of
// `returnPartialData`. We just use that for some early UI!
const outfit = outfitData.outfit;