;\r\n }\r\n\r\n return (\r\n \u003Cdiv>\r\n \u003CNestedComponent />\r\n {greeting.data?.text}\r\n \u003C/div>\r\n );\r\n}\r\n```\r\n\r\nThese combinations of items will cause an infinite fetching/render loop for trpc.greeting.useQuery() even with retry set to false.\r\n\r\n**Expected behavior**\r\nI would expect that the early return boolean would flip eventually and would allow the main function to render properly after it tries one time to fetch the query (retry=false)\r\n\r\n\r\n\r\n\r\n### Link to reproduction\r\n\r\n\r\n[https://codesandbox.io/p/github/mcunningham/trpc-infinite-loop/main](https://codesandbox.io/p/github/mcunningham/trpc-infinite-loop/main?file=README.md&workspace=%257B%2522activeFilepath%2522%253A%2522README.md%2522%252C%2522openFiles%2522%253A%255B%2522README.md%2522%252C%2522%252Fclient%252Fsrc%252Fcomponents%252FNestedComponent.tsx%2522%252C%2522%252Fclient%252Fsrc%252FGreeting.tsx%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522spaces%2522%253A%257B%2522clg7iqcux000x3b6k3wb2s46e%2522%253A%257B%2522key%2522%253A%2522clg7iqcux000x3b6k3wb2s46e%2522%252C%2522name%2522%253A%2522Default%2522%252C%2522devtools%2522%253A%255B%257B%2522key%2522%253A%2522clg7kvr2u00153b6kutbekix9%2522%252C%2522type%2522%253A%2522PROJECT_SETUP%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522PREVIEW%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522key%2522%253A%2522clg7iqr13009l3b6k1yn408rz%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522key%2522%253A%2522clg7iqojr004f3b6kfjn95hky%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%257D%257D%252C%2522currentSpace%2522%253A%2522clg7iqcux000x3b6k3wb2s46e%2522%252C%2522spacesOrder%2522%253A%255B%2522clg7iqcux000x3b6k3wb2s46e%2522%255D%252C%2522hideCodeEditor%2522%253Afalse%257D)\r\n\r\n### To reproduce\r\n\r\n\r\nThe reproduction [codesandbox link](https://codesandbox.io/p/github/mcunningham/trpc-infinite-loop/main?file=README.md&workspace=%257B%2522activeFilepath%2522%253A%2522README.md%2522%252C%2522openFiles%2522%253A%255B%2522README.md%2522%252C%2522%252Fclient%252Fsrc%252Fcomponents%252FNestedComponent.tsx%2522%252C%2522%252Fclient%252Fsrc%252FGreeting.tsx%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522spaces%2522%253A%257B%2522clg7iqcux000x3b6k3wb2s46e%2522%253A%257B%2522key%2522%253A%2522clg7iqcux000x3b6k3wb2s46e%2522%252C%2522name%2522%253A%2522Default%2522%252C%2522devtools%2522%253A%255B%257B%2522key%2522%253A%2522clg7kvr2u00153b6kutbekix9%2522%252C%2522type%2522%253A%2522PROJECT_SETUP%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522PREVIEW%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522key%2522%253A%2522clg7iqr13009l3b6k1yn408rz%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522key%2522%253A%2522clg7iqojr004f3b6kfjn95hky%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%257D%257D%252C%2522currentSpace%2522%253A%2522clg7iqcux000x3b6k3wb2s46e%2522%252C%2522spacesOrder%2522%253A%255B%2522clg7iqcux000x3b6k3wb2s46e%2522%255D%252C%2522hideCodeEditor%2522%253Afalse%257D) shows an example using a slightly modified [minimal-react ](https://github.com/trpc/trpc/tree/main/examples/minimal-react) example. It shows an infinite loop state with a nested component imported into a main component returning early with the mock error being thrown immediately in the server side route. I have also been able to reproduce this in nextjs as well.\r\n\r\n\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### ๐จโ๐งโ๐ฆ Contributing\r\n\r\n- [ ] ๐โโ๏ธ Yes, I'd be down to file a PR fixing this bug!",[],4158,"bug: Infinite loop with main component + nested component calling identical .useQuery() hooks","2023-04-22T12:02:12Z","https://github.com/trpc/trpc/issues/4158",0.7388678,["Reactive",2969],{},["Set"],["ShallowReactive",2972],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fzQixX7Q1Gee169d6IRBXAxlaEW0tQw8NUErhihlCkU0":-1},"/trpc/trpc-openapi/400"]