@electric-sql/react 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -17,14 +17,14 @@ This packages exposes a `useShape` hook for pulling shape data into your React c
17
17
  Add `useShape` to a component
18
18
 
19
19
  ```tsx
20
- import { useShape } from "@electric-sql/react"
20
+ import { useShape } from '@electric-sql/react'
21
21
 
22
- export default function MyComponent () {
22
+ export default function MyComponent() {
23
23
  const { isLoading, data } = useShape({
24
- url: "http://my-api.com/shape",
24
+ url: 'http://my-api.com/shape',
25
25
  params: {
26
- table: `foo`
27
- }
26
+ table: `foo`,
27
+ },
28
28
  })
29
29
 
30
30
  if (isLoading) {
@@ -33,7 +33,9 @@ export default function MyComponent () {
33
33
 
34
34
  return (
35
35
  <div>
36
- {data.map(foo => <div>{foo.title}</div>)}
36
+ {data.map((foo) => (
37
+ <div>{foo.title}</div>
38
+ ))}
37
39
  </div>
38
40
  )
39
41
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@electric-sql/react",
3
3
  "description": "React hooks for ElectricSQL",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "author": "ElectricSQL team and contributors.",
6
6
  "bugs": {
7
7
  "url": "https://github.com/electric-sql/electric/issues"
8
8
  },
9
9
  "dependencies": {
10
10
  "use-sync-external-store": "^1.2.2",
11
- "@electric-sql/client": "1.0.7"
11
+ "@electric-sql/client": "1.0.9"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@testing-library/react": "^16.0.0",