angular2-jsonapi
angular2-jsonapi copied to clipboard
Clearing/Re-instantiate datastore
Is there any way to clear datastore?
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
@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?
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.
@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