Nutritious Polygonal Meatball
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@nextcloud/initial-state

1.1.2 • Public • Published

@nextcloud/initial-state

Build Status npm Documentation

Access data from the server-side initial state API within apps.

Installation

npm i -S @nextcloud/initial-state

Usage

import { loadState } from '@nextcloud/initial-state'
 
const val = loadState('myapp', 'user_preference')

Note: loadState throws an Error if the key isn't found, hence you might want to wrap the call with a try block.

Keywords

Install

npm i @nextcloud/initial-state

DownloadsWeekly Downloads

1,972

Version

1.1.2

License

GPL-3.0-or-later

Unpacked Size

351 kB

Total Files

22

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar