You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/src/pages/composables/foundation/create-context.md
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,16 +99,4 @@ Click the buttons to add notifications. Click a notification to dismiss it.
99
99
100
100
:::
101
101
102
-
## Reactivity
103
-
104
-
`createContext` is a **factory function** that returns plain functions. It does not introduce reactivity itself—reactivity comes from the values you provide.
105
-
106
-
| Return | Reactive | Notes |
107
-
| - | :-: | - |
108
-
|`useContext()`| <AppErrorIcon /> | Function, returns injected value |
109
-
| Injected value | <AppSuccessIcon /> | If you provide refs/reactive objects |
110
-
111
-
> [!TIP] Reactivity is what you provide
112
-
> The context system is a transport layer. If you provide `ref()` or `reactive()` values, consumers get reactive access. Plain objects remain plain.
Copy file name to clipboardExpand all lines: apps/docs/src/pages/composables/foundation/create-plugin.md
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,11 +100,4 @@ flowchart LR
100
100
install --> app.runWithContext
101
101
```
102
102
103
-
## Reactivity
104
-
105
-
`createPlugin` is a **factory function** that returns a Vue plugin object. It does not introduce reactivity—it's a vehicle for providing contexts at app level.
106
-
107
-
> [!TIP] Reactivity lives in what you provide
108
-
> The plugin is just the delivery mechanism. Reactive state comes from the contexts you provide via `provideContext()`.
Copy file name to clipboardExpand all lines: apps/docs/src/pages/composables/foundation/create-trinity.md
-11Lines changed: 0 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,15 +81,4 @@ flowchart LR
81
81
C --> Fallback
82
82
```
83
83
84
-
## Reactivity
85
-
86
-
`createTrinity` is a **factory function** that returns a tuple of functions and a default context. It does not introduce reactivity—it structures access to contexts you create.
87
-
88
-
| Return | Reactive | Notes |
89
-
| - | :-: | - |
90
-
|`defaultContext`| <AppSuccessIcon /> | If the context object contains refs/reactive |
91
-
92
-
> [!TIP] Trinity is a pattern, not a reactive primitive
93
-
> The trinity pattern organizes your context into a consistent tuple. Reactivity depends on what you put in `defaultContext`.
0 commit comments