Closed ishanuda closed 3 years ago
Hi, Setting the encoding globally does not encode with base64. However, adding to Persistence locally works fine.
Local Configuration - Successful
@Persistence([{ decode: STORAGE_DECODE_TYPE.BASE64, }])
Global Configuration - Not Successful
import { NGXS_DATA_STORAGE_PLUGIN, NGXS_DATA_STORAGE_DECODE_TYPE, } from '@ngxs-labs/data/storage'; import { STORAGE_DECODE_TYPE } from '@ngxs-labs/data/typings';
providers: [ { provide: NGXS_DATA_STORAGE_DECODE_TYPE, useValue: STORAGE_DECODE_TYPE.BASE64 } ]
Also, note that I could only find NGXS_DATA_STORAGE_DECODE_TYPE instead of NGXS_DATA_STORAGE_DECODE_TYPE_TOKEN
Is this a typo in the documentation?
MR
Thank you very much.
Maybe this is documentation typo
Hi, Have any idea about why the global setting is not working? Is it a bug in the library?
regards
Sorry, I am in vacation. Sorry, I am in vacation
Move to https://github.com/Angular-RU/angular-ru-sdk/issues/869
Hi, Setting the encoding globally does not encode with base64. However, adding to Persistence locally works fine.
Local Configuration - Successful
Global Configuration - Not Successful
Also, note that I could only find NGXS_DATA_STORAGE_DECODE_TYPE instead of NGXS_DATA_STORAGE_DECODE_TYPE_TOKEN
Is this a typo in the documentation?
MR
Thank you very much.