diff --git a/package.json b/package.json
index 458af1b..bcae13f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"dependencies": {
- "@nobleai/rescript-rxjs": "https://github.com/czabaj/rescript-rxjs#73a625653408bd262ac481847108ede30a99442e",
+ "@nobleai/rescript-rxjs": "https://github.com/czabaj/rescript-rxjs#e9e24c22406f40dcaa70f3c0fd8deb07237d3dca",
"@oddbird/popover-polyfill": "^0.2.2",
"@rescript/core": "^0.4.0",
"@rescript/react": "^0.11.0",
diff --git a/src/components/FirebaseFirestoreProvider/FirebaseFirestoreProvider.res b/src/components/FirebaseFirestoreProvider/FirebaseFirestoreProvider.res
index 19e63cc..92aa1b8 100644
--- a/src/components/FirebaseFirestoreProvider/FirebaseFirestoreProvider.res
+++ b/src/components/FirebaseFirestoreProvider/FirebaseFirestoreProvider.res
@@ -5,13 +5,15 @@ let make = (~children) => {
open Reactfire
open Firebase
+ let isStandaloneModeStatus = DomUtils.useIsStandaloneMode()
let {status, data: firestore} = useInitFirestore(async app => {
switch initializedFirestore.contents {
| Some(firestore) => firestore
| None => {
+ let isStandaloneMode = isStandaloneModeStatus.data->Option.getWithDefault(false)
let firestore = initializeFirestore(
app,
- !DomUtils.isStandaloneMode && AppStorage.getThrustDevice() === None
+ !isStandaloneMode && AppStorage.getThrustDevice() === None
? {}
: {
localCache: FirestoreLocalCache.persistentLocalCache({
diff --git a/src/pages/MyPlaces/EditUser.res b/src/pages/MyPlaces/EditUser.res
index a15203e..8974b1f 100644
--- a/src/pages/MyPlaces/EditUser.res
+++ b/src/pages/MyPlaces/EditUser.res
@@ -5,6 +5,7 @@ module Validators = Validators.CustomValidators(FormFields)
@react.component
let make = (~initialName, ~onDismiss, ~onSubmit) => {
+ let isStandaloneModeStatus = DomUtils.useIsStandaloneMode()
React.useEffect0(() => {
let initialThrustDevide = AppStorage.getThrustDevice() !== None
Some(
@@ -61,7 +62,10 @@ let make = (~initialName, ~onDismiss, ~onSubmit) => {
/>
}}
/>
- {DomUtils.isStandaloneMode ? React.null :