{"repo":"cvara/rxdb-hooks","free":true,"listed":false,"github":"https://github.com/cvara/rxdb-hooks","clone":"git clone https://github.com/cvara/rxdb-hooks.git","description":"React hooks for integrating with RxDB","language":"TypeScript","stars":148,"topics":["react","rxdb","react-hooks","react-rxdb","use-rxdb"],"license":"MIT","category":"ui-components","readme_excerpt":"rxdb-hooks React hooks for integrating with RxDB [!NOTE] Since 17.0.0-beta.7 , RxDB ships its own official React hooks plugin — see the RxDB React integration guide. If you're starting a new project on RxDB ≥ 17, the official plugin is the recommended choice. rxdb-hooks continues to be maintained for projects on the RxDB versions listed in the compatibility table below. Table of Contents Click to expand - About - Installation - Example - Compatibility with RxDB - Migration Guide - API - Provider - useRxDB - useRxCollection - useRxQuery - useRxData - useRxDocument - Recipes - Query and Query Constructor memoization - Lazy instantiation of RxDatabase & RxCollections - Mutations - LICENSE About Nothing fancy, just conveniently handles common use cases such as: - subscribing to query observables and translating results into React state - cleaning up after subscriptions where necessary - paginating results - maintaining useful state information (i.e. data fetching or data exhaustion during pagination) - lazily creating or destroying collections Installation Example Root.jsx : Consumer.jsx : initialize.js : Compatibility with RxDB The core API of rxdb-hooks remains largely the same across all major versions beyond 1.x , however some parts of the internal implementation (most notably the plugin) differ based on the version of rxdb we need to target \\ . Please use the appropriate version of rxdb-hooks as per this table: rxdb-hooks version targeted RxDB version ------------------ ----","default_branch":null,"files":null,"tree":[],"storefront":"/r/cvara","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cvara/rxdb-hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}