Skip to content

Commit

Permalink
react: enable profile field policy
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysu committed Apr 4, 2024
1 parent 4bc5ec2 commit 1a83791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/api-bindings/src/apollo/cache/createTypePolicies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
createFollowingFieldPolicy,
createMutualFollowersFieldPolicy,
createProfileActionHistoryFieldPolicy,
createProfileFieldPolicy,
createProfileRecommendationsFieldPolicy,
createProfilesFieldPolicy,
createPublicationFieldPolicy,
Expand Down Expand Up @@ -68,8 +69,7 @@ export function createTypePolicies(): StrictTypedTypePolicies & InheritedTypePol
mutualFollowers: createMutualFollowersFieldPolicy(),
profileActionHistory: createProfileActionHistoryFieldPolicy(),
profileRecommendations: createProfileRecommendationsFieldPolicy(),
// TODO: investigate correct usage of cache redirect
// profile: createProfileFieldPolicy() as FieldPolicy<unknown>,
profile: createProfileFieldPolicy() as FieldPolicy<unknown>,
profiles: createProfilesFieldPolicy(),
publication: createPublicationFieldPolicy() as FieldPolicy<unknown>,
publications: createPublicationsFieldPolicy(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { FieldFunctionOptions, FieldPolicy, Reference } from '@apollo/client';

import { Profile, ProfileRequest } from '../../../lens';

// this function is not in use
// TODO: investigate correct usage of cache redirect
export function createProfileFieldPolicy(): FieldPolicy<
Profile,
Profile,
Expand Down

0 comments on commit 1a83791

Please sign in to comment.