mliffx
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

mliffx

MobX Store for LINE Frontend Framework state

Installation

npm i mliffx

Usage

Initialize

In your entry file

import MLIFFXStore from 'mliffx'
 
mliffx.init()

MLIFFX Properties

isInit: boolean

It will be true if LIFF is initialized.

error: Error

It will be defined if LIFF is failed to initialize.

userProfile: DataStore< UserProfile >

It will return data store of user profile

accessToken: DataStore< string >

It will return data store of accessToken

DataStore

Example of calling value in DataStore

userProfile.value
Value Structure
  • value: T Generic Type depend on data
  • fetched: boolean will be true if store is fetched
  • loading: boolean will be true if store is fetching

Readme

Keywords

Package Sidebar

Install

npm i mliffx

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

13.9 kB

Total Files

19

Last publish

Collaborators

  • reiiyuki