Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@electric-sql/pglite-react

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electric-sql/pglite-react

Hooks for using PGlite

  • 0.2.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
increased by37.32%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 09 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc