store
handle storing data persistently store "DynamoDB"
How to use
import { Plugin } from '@root'
Plugin.store({
...STORE_PAYLOAD
})Store payload
Save data to store
import { Plugin } from '@root'
const item = {
id: 'item-id',
name: 'item name'
}
const onSave = () => {
}
Plugin.store({
key: 'my-store-key',
data: item,
method: 'POST',
callback: onSave
})Get data from store
Remove data from store
Last updated