Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timgl committed Jan 28, 2025
1 parent e92de9e commit f930a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/queries/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ async function executeQuery<N extends DataNode>(
!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<N['response']>
if (useEventSource) {
if (useOptimizedPolling) {
response = await api.queryAsync(
queryNode,
methodOptions,
Expand Down

0 comments on commit f930a4b

Please sign in to comment.