Skip to content

Example architecture of pure modular components using shared state-management.

Notifications You must be signed in to change notification settings

mjbrisebois/openstate-js

Repository files navigation

OpenState - Modular Web Components

A modular framework for shared state-management between web components.

Overview

See Demo

Design

Metastate Values

  • present - True if the data exists in state
  • current - True if present and not expired
  • changed - True if the initial mutable is different than the current mutable
  • readable - Implementation specific
  • writable - Implementation specific
  • reading - True if a read is currently in process
  • writing - True if a write is currently in process
  • cached - True if the value exists in cache storage
  • expired - Implementation specific
  • valid - True if rejections is empty
  • invalid - Inverse of valid
  • failed - True if write was called and stopped because of invalid

API Reference

See docs/API.md

Contributing

See CONTRIBUTING.md

About

Example architecture of pure modular components using shared state-management.

Resources

Stars

Watchers

Forks

Packages

No packages published