Skip to content

Commit

Permalink
feat: remove context tags (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva authored Jan 22, 2024
1 parent ea3d8f8 commit e2e3fbd
Show file tree
Hide file tree
Showing 81 changed files with 107 additions and 1,334 deletions.
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

0 comments on commit e2e3fbd

Please sign in to comment.