Socket
Socket
Sign inDemoInstall

@app-masters/redux-lib

Package Overview
Dependencies
2
Maintainers
6
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @app-masters/redux-lib


Version published
Maintainers
6
Install size
208 kB
Created

Readme

Source

Redux-Lib

AMActions

Setup (callbacks are the same object used with AppBoostrap.setup()).

 let callbacks = {
    onMinVersionNotSatifies: (version) => {
        alert("Você deve atualizar sua versão agora! Por favor recarregue a página, se a mensagem continuar, limpe o cache do navegador.");
    },
    onNewVersion: (version) => {
        alert('Bem vindo à nova versão!');
    },
    onUncaughtError: (e) => {
        Rollbar.error(e);
        alert("Houve um erro inesperado e os programadores responsáveis já foram avisados. \n\n Detalhes técnicos: " + e.message);
    }
  };

  AMActions.setup(storage, callbacks);

AMCacheActions

Working with offline and sync data

When you want to save some record, JUST ON CACHE, call saveObjectCache() otherwise saveObject(). It will save the record just locally, on cache.

...

To check for offline data: 
action.hasSyncData - tell you if have some local record
action.getCountSyncData - will return the count of local records

...

To get that records:
action.getSyncData - will return all local records

... 

After you sync your data, you can clean offline records:
action.deleteSyncData (dispatch) - will remove all local record (after you sync)

Change Log

Check all changes on changelog.

FAQs

Last updated on 17 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc