Skip to content

Observable react context [Eagle Eye] - prevents an automatic total component tree re-rendering at context change.

License

Notifications You must be signed in to change notification settings

webKrafters/eagleeye.js

Repository files navigation

Eagle Eye

TypeScript GitHub Workflow Status coverage NPM Maintenance build size Downloads GitHub package.json version

React-Observable-Context [Eagle Eye]

  • Auto-immutable update-friendly context. See store.setState.
  • A context bearing an observable consumer store.
  • Recognizes negative array indexing. Please see Property Path and store.setState Indexing.
  • Only re-renders subscribing components (clients) on context state changes.
  • Subscribing component decides which context state properties' changes to trigger its update.

Name: React-Observable-Context

Moniker: Eagle Eye

Usage: Please see Getting Started.

Demo: Play with the app on codesandbox
If sandbox fails to load app, please refresh dependencies on its lower left.

Install:
npm i -S react-eagleeye
Alternate: npm i -S @webkrafters/react-observable-context

May also see What's Changed?

Please see full documentation here:

eagleeye.js.org

License

MIT