Fix Settings crash: missing fragment interpolation

ANALYTICS_OWN_PROFILE_FRAGMENT spreads ...ProfileLocationFragment but never
interpolated ${PROFILE_LOCATION_FRAGMENT}, unlike its siblings (PROFILE_CONTENT,
LIKES, SEARCH_SETTINGS). The dangling spread propagated up through
AUTH_PROFILE_FRAGMENT → AUTH_PROVIDER_FRAGMENT → APP_SETTINGS_QUERY, which the
Settings page runs on mount — producing "Invariant Violation: No fragment named
ProfileLocationFragment" and crashing <SettingsPage>.

Add the interpolation so the fragment is self-contained. Also fixes the same
latent break in AUTH_PROVIDER_QUERY and ANALYTICS_QUERY.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Trey T
2026-06-01 19:04:50 -05:00
parent 39cf3f2a74
commit bb5c6d3bd5
+1
View File
@@ -135,6 +135,7 @@ export const ANALYTICS_PROFILE_FRAGMENT = gql`
// Analytics fragment for the OWN profile (extra fields like analyticsId, lgbtqiaMode, lookingFor, etc.)
export const ANALYTICS_OWN_PROFILE_FRAGMENT = gql`
${PROFILE_LOCATION_FRAGMENT}
fragment AnalyticsOwnProfileFragment on Profile {
id
age