Skip to content

Commit

Permalink
fix: completely comment out growthbook for now
Browse files Browse the repository at this point in the history
  • Loading branch information
eligundry committed Jul 10, 2024
1 parent 03151d8 commit 3d8a171
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions app/context/GrowthBook.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Growthbook is broken until this issue is resolved
// https://github.com/growthbook/growthbook/issues/2237
//
// import {
// GrowthBookProvider as ActualGrowthBookProvider,
// GrowthBook,
Expand Down
16 changes: 9 additions & 7 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { promiseHash } from 'remix-utils/promise'

import { spotifyStrategy } from '~/lib/auth.server'
import { getRequestContextValues } from '~/lib/context.server'
import growthbookLib from '~/lib/growthbook.server'
// import growthbookLib from '~/lib/growthbook.server'
import userSettings from '~/lib/userSettings.server'

import Document from '~/components/Base/Document'
Expand Down Expand Up @@ -75,25 +75,27 @@ export const meta: MetaFunction<typeof loader> = ({ data, location }) => {
export async function loader({ request, context }: LoaderFunctionArgs) {
const { serverTiming, env } = getRequestContextValues(request, context)

const { session, settings, gb } = await promiseHash({
const { session, settings } = await promiseHash({
session: serverTiming.track('root.spotify.session', () =>
spotifyStrategy.getSession(request),
),
settings: serverTiming.track('root.userSettings.get', () =>
userSettings.get(request),
),
gb: serverTiming.track('root.growthbook.get', () =>
growthbookLib.initializeFromRequest(request),
),
// gb: serverTiming.track('root.growthbook.get', () =>
// growthbookLib.initializeFromRequest(request),
// ),
})

return json(
{
user: session?.user ?? null,
settings,
growthbook: {
features: gb.getFeatures(),
attributes: gb.getAttributes(),
// features: gb.getFeatures(),
// attributes: gb.getAttributes(),
features: {},
attributes: {},
},
ENV: {
SPOTIFY_CLIENT_ID: env.SPOTIFY_CLIENT_ID,
Expand Down

0 comments on commit 3d8a171

Please sign in to comment.