diff --git a/frontend/src/queries/query.ts b/frontend/src/queries/query.ts index c4a99aaddf003..bb017fafe2c5a 100644 --- a/frontend/src/queries/query.ts +++ b/frontend/src/queries/query.ts @@ -101,13 +101,13 @@ async function executeQuery( !SYNC_ONLY_QUERY_KINDS.includes(queryNode.kind) && !!featureFlagLogic.findMounted()?.values.featureFlags?.[FEATURE_FLAGS.QUERY_ASYNC] - const useEventSource = posthog.isFeatureEnabled('query-eventsource') + const useOptimizedPolling = posthog.isFeatureEnabled('query-optimized-polling') if (!pollOnly) { const refreshParam: RefreshType | undefined = refresh && isAsyncQuery ? 'force_async' : isAsyncQuery ? 'async' : refresh let response: NonNullable - if (useEventSource) { + if (useOptimizedPolling) { response = await api.queryAsync( queryNode, methodOptions,