From f6b84f12c90b0c91562e734febb92f7c540c56d5 Mon Sep 17 00:00:00 2001 From: James Arthur Date: Mon, 9 Dec 2024 13:59:31 +0100 Subject: [PATCH] docs: write patterns guide and example. (#2021) Add Writes guide and write-patterns example. --- .changeset/beige-snails-brush.md | 5 +++++ .changeset/tender-seas-stare.md | 5 +++++ examples/write-patterns/vite.config.ts | 1 - 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/beige-snails-brush.md create mode 100644 .changeset/tender-seas-stare.md diff --git a/.changeset/beige-snails-brush.md b/.changeset/beige-snails-brush.md new file mode 100644 index 0000000000..8b6dc13a40 --- /dev/null +++ b/.changeset/beige-snails-brush.md @@ -0,0 +1,5 @@ +--- +"@electric-sql/client": patch +--- + +Expose `shape.stream` as public readonly property. diff --git a/.changeset/tender-seas-stare.md b/.changeset/tender-seas-stare.md new file mode 100644 index 0000000000..ef18216bb1 --- /dev/null +++ b/.changeset/tender-seas-stare.md @@ -0,0 +1,5 @@ +--- +"@electric-sql/react": patch +--- + +Expose `stream` in the useShape result data. This allows React components to easily access the stream to match on. diff --git a/examples/write-patterns/vite.config.ts b/examples/write-patterns/vite.config.ts index 724055f962..3ed5dd7be0 100644 --- a/examples/write-patterns/vite.config.ts +++ b/examples/write-patterns/vite.config.ts @@ -1,6 +1,5 @@ import { defineConfig } from 'vite' import { VitePWA } from 'vite-plugin-pwa' - import react from '@vitejs/plugin-react' // https://vitejs.dev/config/