reyesoft / ngx-jsonapi

JSON API client library for Angular 5+ 👌 :: Production Ready 🚀
https://ngx-jsonapi.reyesoft.com/
MIT License
101 stars 52 forks source link

Is there a way to disable all caching in v2.2.3? The old methods don't seem to work anymore #328

Open snstarosciak opened 3 years ago

snstarosciak commented 3 years ago

After reviewing some of the older issues, I've tried adding this code to my root node

NgxJsonapiModule.forRoot({
            url: environment.api + '/v2/',
            cache_prerequests: false,
            cachestore_support: false
        }),

The problem is that now I get an error: Object literal may only specify known properties, and 'cachestore_support' does not exist in type 'JsonapiConfig'. ^ This makes sense because there is no longer a reference to cachestore_support anywhere in the code. Is there a way inside of the config or elsewhere to disable all caching?