Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix (ios): Fix ignoring region param after first cache #1773

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/functions/functions.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ import * as firebase from "../firebase";
import { firebaseUtils } from '../utils';
import { HttpsCallable } from './functions';

let functions: FIRFunctions;

function getFunctions(region?: firebase.firebaseFunctions.SupportedRegions): FIRFunctions {
if (!functions) {
functions = region ? FIRFunctions.functionsForRegion(region) : FIRFunctions.functions();
}
return functions;
return region ? FIRFunctions.functionsForRegion(region) : FIRFunctions.functions();
}

export function httpsCallable<I = {}, O = {}>(functionName: string, region?: firebase.firebaseFunctions.SupportedRegions): HttpsCallable<I, O> {
Expand Down