Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRestashOptions<S, U>

Options used to create Restash context.

Type parameters

Hierarchy

Index

Properties

initialState?: S

The initial state of the store.

middleware?: Middleware

Optional middleware to be run prior to dispatching.

persistent?: string

When truthy indicates that you wish state to be persisted. On next load the previous states will be loaded.

persistentKeys?: Path<S> | Path<S>[]

Array of keys in store that should be persisted. when not defined all are stored at persistent key.

ssrKey?: string | boolean

A key used to load intital state in SSR environments from window if available.

statuses?: U[]

Array of statuses to use as flag for triggering views in your app.

Generated using TypeDoc