async-storage-plugin
async-storage-plugin copied to clipboard
⏱ WIP: Async Storage Plugin
It seems to always return the default value for me, when I console.log the output on the Auth Guard, instead of the one saved. But Redux DevTools shows it loaded...
Let's imagine we have 2 states: A and B ```typescript interface TestModel { conter: number; } @State({ name: 'a', defaults: { counter: 0, }, }) export class AState {} @State({...
It is possible for a `StateToken` to be used for the name of a `StateModel`. Therefore, check for the presence of a `StateToken` in the name, otherwise fallback to a...
I was able to manage our own storage service that provides functionality to support async storage with the help of [StorageMap ](https://www.npmjs.com/package/@ngx-pwa/local-storage) library that use _IndexedDb_ and [AsyncStorageEngine](https://github.com/ngxs-labs/async-storage-plugin). 1. Install...
All states are read from storage on `InitState` and on` UpdateState`. This brings the app to the problem of inconsistent data when state was changed (in memory) but then overwritten...
I have added unit test on this Test failed with error `Error: Expected spy setItem not to have been called`: ```js import { TestBed } from '@angular/core/testing'; import { NgxsAsyncStoragePluginModule...
Using the Sample : `Custom Ionic Storage Engine` the data gets wiped after 3-4 reloads of the page , the same code using ```@ngxs/storage-plugin```` works as expected. Feels like there...
I'm using this plugin in my ionic 4 project, my app will crash when trying to save large array (500++ elements) to ngxs state with async-storage-plugin (use ionic storage plugin...