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
{{ message }}
Repository navigation
Commit 0f7e8b0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/25917-react-adapter-datasource.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ refactor(react): `AdapterCtx` / `useAdapter` are typed by `DataSource`, and `@ob
11
11
Clause-②: yes (narrowing)
12
12
Metadata-protocol: none
13
13
14
-
<!-- adr-0087: not-required (runtime-interface-only ui/packages/react/src/context/AppShellContext.tsx#useAdapter, ui/packages/react/src/context/AppShellContext.tsx#AdapterCtx) No metadata moves: the two narrowed declarations are runtime TypeScript exports of a React context and its hook, with no Zod schema, spec declaration or stored row behind them, so there is nothing for objectstack migrate meta to rewrite; the compiler names the affected call site. -->
14
+
<!-- adr-0087: not-required (runtime-interface-only ui/packages/react/src/context/AppShellContext.tsx#ContextAdapter) No metadata moves: the narrowed type is the one `AdapterCtx` and `useAdapter()` carry, a runtime TypeScript type of a React context, with no Zod schema, spec declaration or stored row behind them, so there is nothing for objectstack migrate meta to rewrite; the compiler names the affected call site. -->
15
15
16
16
The runtime no longer depends on one adapter, so a bring-your-own backend installs `@object-ui/react` without the ObjectStack adapter, and learns at the type level which `DataSource` members it lacks.
0 commit comments