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

feat: remove context tags #2087

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .sizes.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "*",
"total": {
"min": 13308,
"gzip": 5723,
"gzip": 5718,
"brotli": 5187
}
},
Expand All @@ -21,66 +21,66 @@
},
"runtime": {
"min": 4050,
"gzip": 1885,
"gzip": 1879,
"brotli": 1682
},
"total": {
"min": 4401,
"gzip": 2161,
"gzip": 2155,
"brotli": 1915
}
},
{
"name": "counter 💧",
"user": {
"min": 204,
"gzip": 179,
"gzip": 177,
"brotli": 151
},
"runtime": {
"min": 2612,
"gzip": 1350,
"gzip": 1354,
"brotli": 1210
},
"total": {
"min": 2816,
"gzip": 1529,
"gzip": 1531,
"brotli": 1361
}
},
{
"name": "comments",
"user": {
"min": 1216,
"gzip": 704,
"gzip": 709,
"brotli": 636
},
"runtime": {
"min": 7478,
"gzip": 3447,
"gzip": 3469,
"brotli": 3121
},
"total": {
"min": 8694,
"gzip": 4151,
"gzip": 4178,
"brotli": 3757
}
},
{
"name": "comments 💧",
"user": {
"min": 988,
"gzip": 587,
"gzip": 591,
"brotli": 544
},
"runtime": {
"min": 7999,
"gzip": 3683,
"gzip": 3699,
"brotli": 3342
},
"total": {
"min": 8987,
"gzip": 4270,
"gzip": 4290,
"brotli": 3886
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/runtime-tags/src/html/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ interface StreamData {
placeholderId: number;
scopeLookup: Map<number, PartialScope>;
runtimeFlushed: boolean;
global: Record<string, unknown>;
serializer?: Serializer;
}

Expand Down Expand Up @@ -72,6 +73,7 @@ export function createRenderFn(renderer: Renderer) {
};

$_buffer = createInitialBuffer(stream);
streamState.global = context;
$_streamData = createStreamState(streamState);
pushContext("$", context);

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading