Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Prefixer

Callable

  • Prefixer(key: string): string
  • Method used to modify a key for use in a Store. Used primarily by withPrefix.

    example
    import { user } from '../data/user';

    const store = stores.utils.withPrefix(stores.localStore(), function(key) {
    return `${key}|${user.guid}`;
    });

    Parameters

    • key: string

      The key to modify before passing to a Store.

    Returns string

    The modified key to use in a Store.