Skip to content

Commit 4c81676

Browse files
committed
fix(core): circular import issue
caused repl segments to no longer show
1 parent ff279bb commit 4c81676

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/qwik/src/core/shared/qrl/qrl-class.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { isDev, isBrowser } from '@qwik.dev/core/build';
2-
import { assertDefined } from '../error/assert';
3-
import { QError, qError } from '../error/error';
1+
// keep these imports above the rest to prevent circular dep issues
42
import { getPlatform, isServerPlatform } from '../platform/platform';
53
import { verifySerializable } from '../utils/serialize-utils';
6-
// ^ keep these above to prevent circular dep issues
4+
// ^^^ keep these imports above the rest to prevent circular dep issues
5+
6+
import { isBrowser, isDev } from '@qwik.dev/core/build';
77
// @ts-expect-error we don't have types for the preloader
88
import { p as preload } from '@qwik.dev/core/preloader';
99
import {
@@ -14,6 +14,8 @@ import {
1414
type InvokeContext,
1515
type InvokeTuple,
1616
} from '../../use/use-core';
17+
import { assertDefined } from '../error/assert';
18+
import { QError, qError } from '../error/error';
1719
import { getQFuncs, QInstanceAttr } from '../utils/markers';
1820
import { isPromise, maybeThen, retryOnPromise } from '../utils/promises';
1921
import { qDev, qSerialize, qTest, seal } from '../utils/qdev';
@@ -74,6 +76,7 @@ export const createQRL = <TYPE>(
7476
}
7577

7678
let _containerEl: Element | undefined;
79+
7780
const qrl = async function (this: unknown, ...args: QrlArgs<TYPE>) {
7881
const boundedFn = bindFnToContext.call(this, tryGetInvokeContext());
7982
const result = await boundedFn(...args);

0 commit comments

Comments
 (0)