Query dynamic cache key computation (#12814)

In this PR:
- add query hashKey to ObjectMetadataItems query graphql cache to avoid
caching outdated queries
- improve performance by removing ResolveField at FieldLevel and adding
this at resolver level
This commit is contained in:
Charles Bochet
2025-06-24 14:04:00 +02:00
committed by GitHub
parent 48347095d2
commit 4ac208cf1c
6 changed files with 44 additions and 57 deletions

View File

@ -145,14 +145,15 @@ export const SettingsObjectNewFieldConfigure = () => {
});
}
navigate(SettingsPath.ObjectDetail, {
objectNamePlural,
});
// TODO: fix optimistic update logic
// Forcing a refetch for now but it's not ideal
await apolloClient.refetchQueries({
include: ['FindManyViews', 'CombinedFindManyRecords'],
});
navigate(SettingsPath.ObjectDetail, {
objectNamePlural,
});
setIsSaving(false);
} catch (error) {
setIsSaving(false);