angular2-jsonapi icon indicating copy to clipboard operation
angular2-jsonapi copied to clipboard

Clearing/Re-instantiate datastore

Open tristaofernando opened this issue 8 years ago • 4 comments
trafficstars

Is there any way to clear datastore?

tristaofernando avatar Sep 12 '17 17:09 tristaofernando

In the same area is there a way to "store" the datastore. I'm building an offline app - feeded by a drupal website - using the library and i'd like to use the library to sync data and store it until user ask for a resync, than clear it a refetch the data.

Thanks

artisson avatar Sep 13 '17 07:09 artisson

@tristaofernando Clearing is not possible at the moment. What is the use case of clearing the datastore? @artisson Storing is also not implemented. I think this is a more complex topic. I am not sure if this should be handled by this library. What makes you think this should be part of the library?

HennerM avatar Sep 16 '17 19:09 HennerM

Hi @HennerM , the use case would be to use the library seamlessly in an app or unconnected environnement. But storing the results can also be an option.

artisson avatar Sep 18 '17 15:09 artisson

@HennerM for example, I have a DataStoreService witch provided in root. And after logout from my application i want to reinitialize datastore for next login user

monkeycatdog avatar Aug 15 '19 15:08 monkeycatdog