Migrating the core of ReactFire to useSyncExternalStore, which is the recommended way to sync state between React and something external (in our case RxJS).
The main changes are in src/useObservable.ts and src/SuspenseSubject.ts.
Also adds a test to test/firestore.test.tsx to address #327.
Description
Migrating the core of ReactFire to
useSyncExternalStore
, which is the recommended way to sync state between React and something external (in our case RxJS).The main changes are in
src/useObservable.ts
andsrc/SuspenseSubject.ts
.Also adds a test to
test/firestore.test.tsx
to address #327.