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

@appbaseio/reactivecore

Package Overview
Dependencies
Maintainers
7
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appbaseio/reactivecore

Core architecture of reactive UI libraries

  • 9.15.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4K
decreased by-21.74%
Maintainers
7
Weekly downloads
 
Created
Source

reactivecore

npm version

This is the platform agnostic core architecture of reactive UI libraries.

Installation

yarn add @appbaseio/reactivecore

Usage and documentation

Create store:

import configureStore from "@appbaseio/reactivecore";

Supported actions:

Import via:

import { <actionName> } from "@appbaseio/reactivecore/lib/actions"
ActionUsage
addComponentto register a component in the store
removeComponentto remove a component from the store
watchComponentto set up component subscription
setQueryto set the component query in the store
setQueryOptionsto add external query options
logQueryExecuted automatically to log query for gatekeeping
executeQueryExecuted automatically (whenever necessary, based on the dependency tree) when the query of a component is updated
updateHitsupdates results from elasticsearch query
updateQueryto update the query in the store - called when a change is triggered in the component
loadMorefor infinte loading and pagination

Utility methods

Import via:

import { <methodName> } from "@appbaseio/reactivecore/lib/utils"
MethodUsage
isEqualCompare two objects/arrays
debounceStandard debounce
getQueryOptionsreturns applied query options (supports size & from)
pushToAndClausePushes component to leaf and node. Handy for internal component registration
checkValueChangechecks and executes before/onValueChange for sensors
getAggsOrderreturns aggs order query based on sortBy prop
checkPropChangechecks for props changes that would need to update the query via callback
checkSomePropChangechecks for any prop change in the propsList and invokes the callback

Changelog

Check the Changelog doc

FAQs

Package last updated on 14 Feb 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