diff --git a/package.json b/package.json index 1f709238..9f3e2689 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "typescript": "^4.2.4" }, "dependencies": { - "rxfire": "^6.0.0", + "rxfire": "^6.0.2", "rxjs": "^6.6.3 || ^7.0.1" }, "resolutions": { diff --git a/src/functions.tsx b/src/functions.tsx index e859b463..501822b1 100644 --- a/src/functions.tsx +++ b/src/functions.tsx @@ -20,8 +20,6 @@ export function useCallableFunctionResponse( const functions = useFunctions(); const observableId = `functions:callableResponse:${functionName}:${JSON.stringify(options?.data)}:${JSON.stringify(options?.httpsCallableOptions)}`; const obsFactory = rxHttpsCallable(functions, functionName, options?.httpsCallableOptions); - - //@ts-expect-error because RxFire doesn't make data optional. Remove when https://github.com/FirebaseExtended/rxfire/pull/34 is released. const observable$ = obsFactory(options?.data); return useObservable(observableId, observable$, options); diff --git a/yarn.lock b/yarn.lock index 32b4a1ea..fdf7cda0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10637,10 +10637,10 @@ run-queue@^1.0.0, run-queue@^1.0.3: dependencies: aproba "^1.1.1" -rxfire@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/rxfire/-/rxfire-6.0.0.tgz#298d6bba7963d2338a51bac6930c88192e345a42" - integrity sha512-COpH7vtMrxc+iKqUS1A6CEZMJwIpMM/3H1jnKjYAhzhHQG1YaJYH4Q8EcMMNd0ZX7l8ag6hW1ppoB7j9ctJyfA== +rxfire@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/rxfire/-/rxfire-6.0.2.tgz#2edf59e1b35401503e1bef368c40cbc17f1afb53" + integrity sha512-4Ob30tYy88sEDk92QzKznVvNjB13T0Z30aCC5hWkekaW2SzR3OHr4LO74IFGw7c/PoDUmQTzwwnncjq56pfOrQ== dependencies: tslib "^1.9.0 || ~2.1.0"