Skip to content

Conversation

@sashimikun
Copy link

Implemented data-patch operation support by updating JsonPatch type and useUIStream hook. This allows updating data bindings separately from components. Added tests and refactored patch logic into utils.ts.

  • Update JsonPatch type in @json-render/core to include optional dataPath and make path optional.
  • Update useUIStream hook in @json-render/react to support onDataPatch callback.
  • Extract patch processing logic to packages/react/src/utils.ts.
  • Add unit tests for patch processing logic.

Address issue: #5

image

- Update `JsonPatch` type in `@json-render/core` to include optional `dataPath` and make `path` optional.
- Update `useUIStream` hook in `@json-render/react` to support `onDataPatch` callback.
- Extract patch processing logic to `packages/react/src/utils.ts`.
- Add unit tests for patch processing logic.
- Update `JsonPatch` type in `@json-render/core` to include optional `dataPath` and make `path` optional.
- Update `useUIStream` hook in `@json-render/react` to support `onDataPatch` callback.
- Extract patch processing logic to `packages/react/src/utils.ts`.
- Add unit tests for patch processing logic.

Verified with 168 tests passed.
@vercel
Copy link
Contributor

vercel bot commented Jan 18, 2026

@google-labs-jules[bot] is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant