0.2.21 • Published 12 months ago

@electric-sql/pglite-react v0.2.21

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

PGlite React.js Hooks

This package implements React hooks for PGLite on top of the live query plugin. Full documentation is available at pglite.dev/docs/framework-hooks.

To install:

npm install @electric-sql/pglite-react

The hooks this package provides are:

  • PGliteProvider: A Provider component to pass a PGlite instance to all child components for use with the other hooks.
  • usePGlite: Retrieve the provided PGlite instance.
  • makePGliteProvider: Create typed instances of PGliteProvider and usePGlite.
  • useLiveQuery: Reactively re-render your component whenever the results of a live query change
  • useLiveIncrementalQuery: Reactively re-render your component whenever the results of a live query change by offloading the diff to PGlite
0.2.21

12 months ago

0.2.20

1 year ago

0.2.19

1 year ago

0.2.18

1 year ago

0.2.17

1 year ago

1.0.0-next.0

1 year ago

1.0.0-next.1

1 year ago

0.2.16

1 year ago

0.2.15

1 year ago

0.2.14

1 year ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago