hunk.code_window: @Module({
     imports: [SharedModule, NotificationGroupsModule],
     controllers: [EnvironmentsController],
     providers: [...USE_CASES],
     exports: [...USE_CASES],
   })
   export class EnvironmentsModule {}
hunk.labels: keep keep replace keep keep keep keep keep
hunk.after_edit:   imports: [SharedModule, NotificationGroupsModule, forwardRef(() => AuthModule)],
  
hunk.file_path: apps/api/src/app/environments/environments.module.ts
hunk.type: replace
file: import { useQuery } from 'react-query';
  import { INotificationTemplate } from '@novu/shared';
  import { getTemplateById } from '../../api/templates';
  
  export function useTemplateFetcher(templateId) {
    const {
      isLoading: loading,
      data: template,
      refetch,
    } = useQuery<INotificationTemplate>(`notificationById:${templateId}`, () => getTemplateById(templateId), {
      enabled: !!templateId,
      refetchOnMount: false,
      refetchInterval: false,
    });
  
    return {
      template,
      loading,
      refetch,
    };
  }
  