Cache ClosetList in Apollo
Now, when you click from the user's lists page to a specific list, we'll share the data instead of showing a full loading screen!
This commit is contained in:
parent
f20c68ea81
commit
01000c84f1
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ const typePolicies = {
|
|||
toReference({ __typename: "Zone", id: z.id }, true)
|
||||
);
|
||||
},
|
||||
closetList: (_, { args, toReference }) => {
|
||||
return toReference({ __typename: "ClosetList", id: args.id }, true);
|
||||
},
|
||||
items: (_, { args, toReference }) => {
|
||||
return args.ids.map((id) =>
|
||||
toReference({ __typename: "Item", id }, true)
|
||||
|
|
Loading…
Reference in a new issue