MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / increment

Function increment

example/withoutSuspense/RealtimeDatabase.tsx:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 const database = useDatabase();
12 const counterRef = ref(database, 'counter');
13 const increment = amountToIncrement => {
14 return set(counterRef, rtdbIncrement(amountToIncrement));
15 };
16
17 const response = useDatabaseObjectData(counterRef);
18

Callers 2

CounterFunction · 0.70
incrementCounterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected