File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export const EditorProvider = ({
160160 const [ currentStepId , setCurrentStepId ] = useState < string | null > ( null )
161161 const [ resetTimestamp , setResetTimestamp ] = useState < number > ( Date . now ( ) )
162162
163- const { data : getAppsData , loading : isLoadingAllApps } = useQuery ( GET_APPS )
163+ const { data : getAppsData , loading : isLoadingAllApps } = useQuery ( GET_APPS , {
164+ fetchPolicy : 'cache-first' ,
165+ } )
164166
165167 const steps = flow ?. steps ?? [ ]
166168 const isEmptyPipe =
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ export default function Templates(): JSX.Element {
4040 const { templateId } = useParams ( )
4141 const template = templates ?. find ( ( template ) => template . id === templateId )
4242
43- const { data : appsData , loading : appsLoading } = useQuery ( GET_APPS )
43+ const { data : appsData , loading : appsLoading } = useQuery ( GET_APPS , {
44+ fetchPolicy : 'cache-first' ,
45+ } )
4446 const apps : IApp [ ] = appsData ?. getApps ?? [ ]
4547
4648 return (
You can’t perform that action at this time.
0 commit comments