From 0213cd3a6e6aa58c2ec8a2b386a43fedb7925730 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 19:47:00 +0000 Subject: [PATCH] docs(vue): Update README for Vue docs, plugin setup and testing Link Vue pages at /vue, show DataClientPlugin setup, fix the useLive example (it must be awaited), drop React-only APIs (useCancelling, AsyncBoundary, ErrorBoundary), add Examples, testing and missing composables. Fix shared typos and getList.push args in the root and React READMEs. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01CjHAoyedug9sFPmBbb8uJk --- README.md | 6 +- packages/react/README.md | 6 +- packages/vue/README.md | 127 ++++++++++++++++++++++++++------------- 3 files changed, 92 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index b31d2abec0bf..4993f1995bd1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The scalable way to build applications with [dynamic data](https://dataclient.io/docs/getting-started/mutations). -[Declarative resouce definitons](https://dataclient.io/docs/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/docs/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint) +[Declarative resource definitions](https://dataclient.io/docs/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/docs/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint)
[Performant rendering](https://dataclient.io/docs/getting-started/data-dependency) in [React](https://react.dev/), [NextJS](https://nextjs.org/), [React Native](https://reactnative.dev/), [Expo](https://expo.dev/), [Vue](https://vuejs.org/) Schema driven. Zero updater functions. @@ -110,7 +110,7 @@ return ( <> - ctrl.fetch(ArticleResource.getList.push, { id }, article) + ctrl.fetch(ArticleResource.getList.push, article) } /> ( ### ...all typed ...fast ...and consistent -For the small price of 9kb gziped.    [๐ŸGet started now](https://dataclient.io/docs/getting-started/agent-skills) +For the small price of 9kb gzipped.    [๐ŸGet started now](https://dataclient.io/docs/getting-started/agent-skills) ## Features diff --git a/packages/react/README.md b/packages/react/README.md index f7c911d8d5d3..7e23da333ea1 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -8,7 +8,7 @@ The scalable way to build applications with [dynamic data](https://dataclient.io/docs/getting-started/mutations). -[Declarative resouce definitons](https://dataclient.io/docs/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/docs/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint) +[Declarative resource definitions](https://dataclient.io/docs/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/docs/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint)
[Performant rendering](https://dataclient.io/docs/getting-started/data-dependency) in [React](https://react.dev/), [NextJS](https://nextjs.org/), [React Native](https://reactnative.dev/), [Expo](https://expo.dev/) Schema driven. Zero updater functions. @@ -112,7 +112,7 @@ return ( <> - ctrl.fetch(ArticleResource.getList.push, { id }, article) + ctrl.fetch(ArticleResource.getList.push, article) } /> ( ### ...all typed ...fast ...and consistent -For the small price of 9kb gziped.    [๐ŸGet started now](https://dataclient.io/docs/getting-started/agent-skills) +For the small price of 9kb gzipped.    [๐ŸGet started now](https://dataclient.io/docs/getting-started/agent-skills) ## Features diff --git a/packages/vue/README.md b/packages/vue/README.md index 9584659a8ce0..47cdee5cda8c 100644 --- a/packages/vue/README.md +++ b/packages/vue/README.md @@ -6,10 +6,10 @@ -The scalable way to build applications with [dynamic data](https://dataclient.io/docs/getting-started/mutations). +The scalable way to build applications with [dynamic data](https://dataclient.io/vue/getting-started/mutations). -[Declarative resouce definitons](https://dataclient.io/docs/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/docs/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint) -
[Performant rendering](https://dataclient.io/docs/getting-started/data-dependency) in [Vue 3](https://vuejs.org/) +[Declarative resource definitions](https://dataclient.io/vue/getting-started/resource) for [REST](https://dataclient.io/rest), [GraphQL](https://dataclient.io/graphql), [Websockets+SSE](https://dataclient.io/vue/concepts/managers#data-stream) and [more](https://dataclient.io/rest/api/Endpoint) +
[Performant rendering](https://dataclient.io/vue/getting-started/data-dependency) in [Vue 3](https://vuejs.org/) Schema driven. Zero updater functions. @@ -24,7 +24,7 @@ Schema driven. Zero updater functions. [![Agent Skills](https://img.shields.io/badge/Agent_Skills-cc785c?style=flat-square&logo=claude&logoColor=white)](https://skills.sh/reactive/data-client) [![Chat](https://img.shields.io/discord/768254430381735967.svg?style=flat-square&colorB=758ED3)](https://discord.gg/35nb8Mz) -**[๐Ÿ“–Read The Docs](https://dataclient.io/docs)**  |  [๐ŸGetting Started](https://dataclient.io/docs/getting-started/agent-skills)  |  [๐Ÿค–Agent Skills](https://skills.sh/reactive/data-client)  |  [๐ŸŽฎTodo Demo](https://stackblitz.com/github/reactive/data-client/tree/master/examples/vue-todo-app?file=src%2Fcomponents%2FTodoListContent.vue) +**[๐Ÿ“–Read The Docs](https://dataclient.io/vue)**  |  [๐ŸGetting Started](https://dataclient.io/vue/getting-started/agent-skills)  |  [๐Ÿค–Agent Skills](https://skills.sh/reactive/data-client)  |  [๐ŸŽฎTodo Demo](https://stackblitz.com/github/reactive/data-client/tree/master/examples/vue-todo-app?file=src%2Fcomponents%2FTodoListContent.vue) @@ -34,7 +34,19 @@ Schema driven. Zero updater functions. npm install --save @data-client/vue @data-client/rest ``` -For more details, see [the Getting Started docs page](https://dataclient.io/docs/getting-started/agent-skills). +Install [DataClientPlugin](https://dataclient.io/vue/api/DataClientPlugin) when creating your app: + +```typescript +import { createApp } from 'vue'; +import { DataClientPlugin } from '@data-client/vue'; +import App from './App.vue'; + +const app = createApp(App); +app.use(DataClientPlugin); +app.mount('#app'); +``` + +For more details, see [the Getting Started docs page](https://dataclient.io/vue/getting-started/installation). ### Skills @@ -68,7 +80,7 @@ class Article extends Entity { } ``` -### Create [collection of API Endpoints](https://dataclient.io/docs/getting-started/resource) +### Create [collection of API Endpoints](https://dataclient.io/vue/getting-started/resource) ```typescript const UserResource = resource({ @@ -86,7 +98,7 @@ const ArticleResource = resource({ }); ``` -### One line [data binding](https://dataclient.io/docs/getting-started/data-dependency) +### One line [data binding](https://dataclient.io/vue/getting-started/data-dependency) ```vue