react-query-firebase 2.9.0 → 2.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -74,5 +74,5 @@
74
74
  "docs:build": "vitepress build docs",
75
75
  "docs:preview": "vitepress preview docs"
76
76
  },
77
- "version": "2.9.0"
77
+ "version": "2.9.2"
78
78
  }
@@ -1,3 +1,4 @@
1
+ import { onAuthStateChanged } from "@react-native-firebase/auth";
1
2
  import { useAuth } from "./useAuth";
2
3
  import { useEffect, useState } from "react";
3
4
  /**
@@ -20,7 +21,7 @@ export const useAuthStateReady = () => {
20
21
  const firebaseAuth = useAuth();
21
22
  const [isAuthStateReady, setIsAuthStateReady] = useState(false);
22
23
  useEffect(() => {
23
- const subscription = firebaseAuth.onAuthStateChanged(() => {
24
+ const subscription = onAuthStateChanged(firebaseAuth, () => {
24
25
  if (!isAuthStateReady) {
25
26
  setIsAuthStateReady(true);
26
27
  }
@@ -1,3 +1,4 @@
1
+ import { onAuthStateChanged } from "@react-native-firebase/auth";
1
2
  import { useAuth } from "./useAuth";
2
3
  import { useEffect, useState } from "react";
3
4
 
@@ -23,7 +24,7 @@ export const useAuthStateReady = () => {
23
24
  const [isAuthStateReady, setIsAuthStateReady] = useState(false);
24
25
 
25
26
  useEffect(() => {
26
- const subscription = firebaseAuth.onAuthStateChanged(() => {
27
+ const subscription = onAuthStateChanged(firebaseAuth, () => {
27
28
  if (!isAuthStateReady) {
28
29
  setIsAuthStateReady(true);
29
30
  }
@@ -1,7 +1,7 @@
1
1
  import { FirebaseAuthTypes } from "@react-native-firebase/auth";
2
2
  type Credential = {
3
3
  token: string;
4
- nonce: string;
4
+ nonce?: string;
5
5
  };
6
6
  /**
7
7
  * A custom hook that returns an auth credential for facebook.
@@ -3,7 +3,7 @@ import { useCallback } from "react";
3
3
 
4
4
  type Credential = {
5
5
  token: string;
6
- nonce: string;
6
+ nonce?: string;
7
7
  };
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import { AuthCredential } from "firebase/auth";
2
2
  type Credential = {
3
3
  token: string;
4
- nonce: string;
4
+ nonce?: string;
5
5
  };
6
6
  /**
7
7
  * A custom hook that returns an auth credential for facebook.
@@ -3,7 +3,7 @@ import { useCallback } from "react";
3
3
 
4
4
  type Credential = {
5
5
  token: string;
6
- nonce: string;
6
+ nonce?: string;
7
7
  };
8
8
 
9
9
  /**