Skip to content

Commit

Permalink
docs: write patterns guide and example. (#2021)
Browse files Browse the repository at this point in the history
Add Writes guide and write-patterns example.
  • Loading branch information
thruflo committed Dec 10, 2024
1 parent 2c13baa commit ce3446a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/beige-snails-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@electric-sql/client": patch
---

Expose `shape.stream` as public readonly property.
5 changes: 5 additions & 0 deletions .changeset/tender-seas-stare.md
Original file line number Diff line number Diff line change
@@ -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.
1 change: 0 additions & 1 deletion examples/write-patterns/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'

import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
Expand Down

0 comments on commit ce3446a

Please sign in to comment.