8000 docs(recipes): remove extraneous import (#111) · homebaseio/homebase-react@e4cd8d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e4cd8d8

Browse files
docs(recipes): remove extraneous import (#111)
Co-authored-by: Chris Smothers <chris.smothers@gmail.com>
1 parent 1fa44bf commit e4cd8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/0900|Recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The example below shows a recipe for keeping Homebase React in sync with Firebase. `client.addTransactListener(callback)` lets you listen to every local transaction and send those updates to Firebase. We also need a way to sync Firebase with Homebase React. In this example we create a namespace on Firebase for each user based on their firebase uid and listen to all changes in that namespace. client.` transactSilently(tx)` allows us save changes received from Firebase without triggering our transactListener function and sending those changes back to Firebase endlessly.
44

55
```js
6-
import { HomebaseProvider, useClient, useEntity, useTransact } from 'homebase-react';
6+
import { useClient, useEntity } from 'homebase-react';
77
import firebase from 'firebase/app';
88
import debounce from 'lodash/debounce';
99
import React from 'react';

0 commit comments

Comments
 (0)
0