From 84004da51c0406cd30c95a29ab8173f00fc8a894 Mon Sep 17 00:00:00 2001 From: George Date: Thu, 5 Oct 2023 14:03:06 +0200 Subject: [PATCH] feat: opt in artist screen to new error middleware (#9374) feat: opt in artist screen to new middleware --- src/app/Components/Artist/ArtistHeaderNavRight.tsx | 2 +- src/app/Scenes/Artist/Artist.tsx | 2 +- src/app/system/relay/middlewares/errorMiddleware.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/Components/Artist/ArtistHeaderNavRight.tsx b/src/app/Components/Artist/ArtistHeaderNavRight.tsx index 2863996f36e..24aff533ca9 100644 --- a/src/app/Components/Artist/ArtistHeaderNavRight.tsx +++ b/src/app/Components/Artist/ArtistHeaderNavRight.tsx @@ -45,7 +45,7 @@ export const ArtistHeaderNavRight: React.FC = ({ setIsFollowed(!isFollowed)} ml={1} /> diff --git a/src/app/Scenes/Artist/Artist.tsx b/src/app/Scenes/Artist/Artist.tsx index 57391f2c0f8..6207acd97f4 100644 --- a/src/app/Scenes/Artist/Artist.tsx +++ b/src/app/Scenes/Artist/Artist.tsx @@ -187,7 +187,7 @@ interface ArtistQueryRendererProps { export const ArtistScreenQuery = graphql` query ArtistAboveTheFoldQuery($artistID: String!, $input: FilterArtworksInput) { - artist(id: $artistID) { + artist(id: $artistID) @principalField { ...ArtistHeader_artist ...ArtistArtworks_artist @arguments(input: $input) ...ArtistHeaderNavRight_artist diff --git a/src/app/system/relay/middlewares/errorMiddleware.ts b/src/app/system/relay/middlewares/errorMiddleware.ts index 7eb1eabff9b..2c90056ca03 100644 --- a/src/app/system/relay/middlewares/errorMiddleware.ts +++ b/src/app/system/relay/middlewares/errorMiddleware.ts @@ -11,6 +11,8 @@ const newErrorMiddlewareOptedInQueries = [ "ArtworkAboveTheFoldQuery", "ArtworkBelowTheFoldQuery", "SearchQuery", + "ArtistAboveTheFoldQuery", + "ArtistBelowTheFoldQuery", "InboxQuery", ]