Commit d8a5a09
feat: add <context> core tag
Provide a value to a tag's body content and consume it anywhere below
in the render tree via a statically resolved from= reference (tag name
or relative template path). Server-only (immutable) contexts compile to
zero client code -- enforced by an executable bundle assertion -- while
mutable providers fan changes out to consumers fine-grained, resume
subscriptions without re-rendering, resolve from client-created
branches (including providers nested in keyed loop iterations), and
support a writable := round trip.1 parent 7f786f2 commit d8a5a09
247 files changed
Lines changed: 4828 additions & 162 deletions
File tree
- .changeset
- agent-feedback
- packages
- runtime-class/test/taglib-lookup/fixtures/getTagsSorted
- runtime-tags
- src
- __tests__
- fixtures-interop
- interop-basic-class-to-tags
- interop-class-to-tags-import
- interop-dynamic-tag-class-to-tags
- interop-dynamic-tag-conditional-class-to-tags
- interop-nested-attr-tags-class-to-tags
- interop-nested-class-to-tags
- interop-tag-params-class-to-tags
- fixtures
- context-basics
- __snapshots__
- tags
- context-deferred-await
- __snapshots__
- context-error-dynamic-from
- __snapshots__
- context-error-not-provider
- __snapshots__
- context-error-provide-no-body
- __snapshots__
- context-error-readonly-assign
- __snapshots__
- context-error-self-not-provider
- __snapshots__
- context-error-two-provides
- __snapshots__
- context-error-unknown-from
- __snapshots__
- context-mutable-await
- __snapshots__
- tags
- context-mutable-nested
- __snapshots__
- tags
- context-mutable-toggle
- __snapshots__
- tags
- context-mutable
- __snapshots__
- tags
- context-self
- __snapshots__
- tags
- context-server-only
- __snapshots__
- context-shadowing
- __snapshots__
- context-writable
- __snapshots__
- tags
- lazy-tag-async-chained
- lazy-tag-async-in-child
- lazy-tag-attrs-update
- lazy-tag-conditional-child-inert
- lazy-tag-conditional-child-state
- lazy-tag-dynamic-placeholder
- lazy-tag-dynamic-unmount-before-load
- lazy-tag-dynamic
- lazy-tag-event-attrs-update
- lazy-tag-event-selector-class
- lazy-tag-event-selector-id
- lazy-tag-event-unmount-before-load
- lazy-tag-event
- lazy-tag-idle-attrs-update
- lazy-tag-idle-unmount-before-load
- lazy-tag-idle
- lazy-tag-input-event-handler
- lazy-tag-load-error
- lazy-tag-media
- lazy-tag-mixed-known-and-dynamic
- lazy-tag-multi-trigger-attrs-update
- lazy-tag-multi-trigger-visible-wins
- lazy-tag-multi-trigger
- lazy-tag-multiple
- lazy-tag-nested-async
- lazy-tag-nested-visible-parent
- lazy-tag-nested
- lazy-tag-parent-scope-child-state
- lazy-tag-placeholder-script-runs-after-insert
- lazy-tag-placeholder
- lazy-tag-reorder-stream-order
- lazy-tag-runtime-id
- lazy-tag-script-runs-after-insert
- lazy-tag-serialize-promise
- lazy-tag-serialized-globals
- lazy-tag-sibling-binding
- lazy-tag-twice
- lazy-tag-unmount-before-load
- lazy-tag-visible-attrs-update
- lazy-tag-visible-parent-resume
- lazy-tag-visible
- lazy-tag
- common
- dom
- html
- translator
- core
- util
- visitors
- program
- tag
- tags
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments