Remove the environment indirections (#7089)

* Use raw underlying globals for environment

* Set dev EXPO_PUBLIC_ENV by exclusion
This commit is contained in:
dan
2024-12-13 17:16:53 +00:00
committed by GitHub
parent e2a7965e43
commit 356dad1932
18 changed files with 32 additions and 50 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import {isWeb} from '#/platform/detection'
import * as persisted from '#/state/persisted'
import {useCloseAllActiveElements} from '#/state/util'
import {useGlobalDialogsControlContext} from '#/components/dialogs/Context'
import {IS_DEV} from '#/env'
import {emitSessionDropped} from '../events'
import {
agentToSessionAccount,
@@ -260,7 +259,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
)
// @ts-ignore
if (IS_DEV && isWeb) window.agent = state.currentAgentState.agent
if (__DEV__ && isWeb) window.agent = state.currentAgentState.agent
const agent = state.currentAgentState.agent as BskyAppAgent
const currentAgentRef = React.useRef(agent)