Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(qrlToString): v2 SyncQRLInternal type #6338

Merged
merged 2 commits into from
May 19, 2024
Merged

Conversation

PatrickJS
Copy link
Member

in v2.

add SyncQRLInternal

@PatrickJS PatrickJS requested a review from Varixo May 18, 2024 20:30
if (!backChannel) {
backChannel = (globalThis as any)[QRL_RUNTIME_CHUNK] = new Map();
const isSync = isSyncQrl(value);
if (!isSync) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as before but some two comments and avoiding the work for syncQRL

: '');
return qrlString;
let qrlStringInline = `${chunk}#${symbol}`;
if (Array.isArray(value.$captureRef$) && value.$captureRef$.length > 0) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactored to check for array and use for-loop for perf

$symbol$: typeof SYNC_QRL;
}

export type SyncQRLInternal = QRLInternal & SyncQRLSymbol;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create sync type

@PatrickJS PatrickJS changed the title refactor(qrlToString): SyncQRLInternal type refactor(qrlToString): v2 SyncQRLInternal type May 18, 2024
Copy link

cloudflare-pages bot commented May 19, 2024

Deploying qwik-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b3aa88c
Status:🚫  Build failed.

View logs

@PatrickJS
Copy link
Member Author

@Varixo I fixed the lint. idk how v2 tests work. is there v2 ci/cd and the errors are v1 things? if it's good can you merge?

@Varixo
Copy link
Member

Varixo commented May 19, 2024

@Varixo I fixed the lint. idk how v2 tests work. is there v2 ci/cd and the errors are v1 things? if it's good can you merge?

I think all good

@PatrickJS PatrickJS merged commit ab488c5 into build/v2 May 19, 2024
17 of 21 checks passed
@PatrickJS PatrickJS deleted the v2-sync-first-check branch May 19, 2024 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants