Skip to main content

Getting Started

Swiss Army Knife#

This library holds miscellaneous tools to be used throughout your project. They are aimed at making build Riot apps a bit simpler.

npm i --save @riot-tools/sak

Features:

  • Observable:: Refactored and extend observable based off of @riotjs/observable. Virtually the same API, but with a bit more feature.
  • Options Validator: A very simple schema validator for ensuring proper option are passed into your components.
  • Queryable: Adds an opinionated async fetch lifecycle to your components to more easily manage fetching APIs, loaders, error capturing, etc.
  • Meta: Build Riot hooks that stack on top of other HOC functions that may also implement hooks, and more!