Pullstate

Pullstate

  • Docs
  • GitHub

›Dev Tools

Getting Started

  • Installation
  • Quick example
  • Quick example (server rendering)

Reading Store State

  • useStoreState (hook)
  • <InjectStoreState>
  • Subscribe

Updating Store State

  • update()
  • Reactions

Async Actions

  • Introduction
  • Creating an Async Action
  • Use Async Actions
  • Async Action Hooks

    • Hooks overview
    • Post action hook
    • Short circuit hook
    • Cache break hook
  • Other Async Action Options
  • Cache clearing
  • Resolve async state on the server

Dev Tools

  • Redux Devtools

Redux Devtools

Pullstate includes a simple way to plug into Redux's devtools, which are already well established and extensive.

Simply include the following somewhere after your Store definitions:

import { registerInDevtools, Store } from "pullstate";

// Store definition
const ExampleStore = new Store({
  //...
});

// Register as many or as few Stores as you would like to monitor in the devtools
registerInDevtools({
  ExampleStore,
});

After this, you should be able to open the Redux devtools tab and see each Store registered and showing changes.

← Resolve async state on the server
Pullstate
Docs
InstallationA Quick ExampleMore
Community
GitHub
Pullstate
Created by Paul Myburgh