UNPKG

@react-firebase/firestore

Version:

Efficiently Render & mutate Firestore data in your react(or react-native) app.

14 lines (13 loc) 694 B
import { FirestoreProviderState } from "./types"; export declare type Operations = "add" | "delete"; export declare function stateReducer(state: FirestoreProviderState, addArgs: AddPathToDataArgs, operation: "add"): any; export declare function stateReducer(state: FirestoreProviderState, deleteArgs: { path: string; }, operation: "delete"): any; export declare type AddPathToDataArgs = any; export declare const actions: { addPathToData: (state: FirestoreProviderState, { path, value: newData, ids, unsub, isLoading, documentOrCollection, snapshot }: any) => any; removePathFromData: (state: FirestoreProviderState, { path }: { path: string; }) => any; };