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