10 Commits

Author SHA1 Message Date
James Daniels
ce716feab1 Using our subject/cache to fix the init race I introduced (#218)
* Using our subject/cache to fix the init race I introduced with the refactor

* Naming

* Await init on non-contextual app, if one is passed

* void | Promise<any> better describes the contract

* Global cache and test
2020-02-25 15:47:33 -08:00
jhuleatt
c67dfa7554 update deps 2020-02-24 09:32:28 -08:00
James Daniels
3cebaa921a Refactoring use/preload and more (#215)
* Drop `initPerformance` (closes #207)
* Cleaning up the use/preload types
* Use my good friend `Proxy` to allow access to both the `serviceProps` and the initialized instance without double calling (e.g, `useAuth()()`)
* More checks against double initializing
* Added binding to the initialize call (closes #213)
* `SuspenseWithPerf` now lazy loads performance monitoring and uses the user timing API
* Fixed the CJS build with a better external test (closes #214)
2020-02-20 13:32:37 -08:00
David Smith
ca32a93aea Add hooks to get firestore document data once (#211)
* Add hooks to get firestore document data once
* use checkStartWithValue for consistency

Co-authored-by: James Daniels <james@jamesdaniels.net>
2020-02-12 13:07:48 -08:00
David East
e2f1b1f58c Preload settings callbacks (#205)
Provide a way for all SDKs to be initialized before they're called by any ReactFire hooks
2020-01-31 11:02:28 -08:00
David East
f417133bd0 Remote Config API (#204)
Add Remote Config
2020-01-30 10:27:58 -08:00
Jeff
6fff36284e Update Dependencies (#200)
* update deps

* fix rollup import
2020-01-16 14:52:23 -08:00
Jeff
4b90236831 Add *Data methods for RTDB (#184)
* extract checkOptions and friends

* add useDatabaseListData and useDatabaseObjectData

* update sample

* update types

* add to docs
2020-01-16 13:56:25 -08:00
Jeff
14ea5295f1 Remove all references to sample-complex and sample-simple (#187)
* remove all references to sample-complex

* remove sample-simple too
2019-11-13 14:43:38 -08:00
jhuleatt
7820b0f162 remove the sample-complex folder 2019-11-11 16:59:08 -08:00